X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Firq.h;h=c234d99efca74a20151844fa4196a9595b81936c;hb=f1fab319eb3fe91c157b3a9564841aef62a03554;hp=ae0b4866c6f5ea095de7d528dd2bbe48ec67626f;hpb=6be6bc01c80959f94a8ef605662d35c812d88488;p=bertos.git 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);