Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
error.h File Reference

ARCv2 public error handling. More...

Go to the source code of this file.

Macros

#define ARCH_EXCEPT(reason_p)
 

Detailed Description

ARCv2 public error handling.

ARC-specific kernel error handling interface. Included by arc/arch.h.

Macro Definition Documentation

◆ ARCH_EXCEPT

#define ARCH_EXCEPT (   reason_p)
Value:
do { \
__asm__ volatile ( \
"mov %%r0, %[reason]\n\t" \
"trap_s %[id]\n\t" \
: \
: [reason] "i" (reason_p), \
[id] "i" (_TRAP_S_CALL_RUNTIME_EXCEPT) \
: "memory"); \
CODE_UNREACHABLE; /* LCOV_EXCL_LINE */ \
} while (false)