16#ifndef ZEPHYR_INCLUDE_ARCH_ARM_ERROR_H_
17#define ZEPHYR_INCLUDE_ARCH_ARM_ERROR_H_
27#if defined(CONFIG_CPU_CORTEX_M)
36#define ARCH_EXCEPT(reason_p) \
40 "mov r0, %[_reason]\n" \
42 :: [_reason] "r" (reason_p), [id] "i" (_SVC_CALL_RUNTIME_EXCEPT) \
45#elif defined(CONFIG_ARMV7_R) || defined(CONFIG_AARCH32_ARMV8_R) \
46 || defined(CONFIG_ARMV7_A)
55#define ARCH_EXCEPT(reason_p) \
56register uint32_t r0 __asm__("r0") = reason_p; \
64 : "r" (r0), [id] "i" (_SVC_CALL_RUNTIME_EXCEPT) \
68#error Unknown ARM architecture
ARM AArch32 specific syscall header.
ARM AArch32 public exception handling.