X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=blobdiff_plain;f=bertos%2Fcpu%2Firq.h;h=c234d99efca74a20151844fa4196a9595b81936c;hp=ae0b4866c6f5ea095de7d528dd2bbe48ec67626f;hb=b64d74abecd41a9ea563eb6197ace94b78eee675;hpb=0fea731d20c6106133186f4771efaaaf036c8321 diff --git a/bertos/cpu/irq.h b/bertos/cpu/irq.h index ae0b4866..c234d99e 100644 --- a/bertos/cpu/irq.h +++ b/bertos/cpu/irq.h @@ -319,6 +319,8 @@ #define IRQ_ENABLED() ((CPU_READ_FLAGS() & 0xc0) != 0xc0) + #define IRQ_RUNNING() ((CPU_READ_FLAGS() & 0x0F) == 0x02) + #if (CONFIG_KERN && CONFIG_KERN_PREEMPT) EXTERN_C void asm_irq_switch_context(void);