diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h index 854f2b3557..d6427cb676 100644 --- a/include/system.h +++ b/include/system.h @@ -26,6 +26,8 @@ #define interrupt_disable_all() __asm__("cpsid i") #elif CONFIG_ZTEST #define interrupt_disable_all() +#else /* !CONFIG_CPU_CORTEX_M */ +#define interrupt_disable_all() irq_lock() #endif #else /* !CONFIG_ZEPHYR */ #define interrupt_disable_all() interrupt_disable() |