Add IRQ_RUNNING() implementation for ARM7.
[bertos.git] / bertos / cpu / irq.h
index ae0b4866c6f5ea095de7d528dd2bbe48ec67626f..c234d99efca74a20151844fa4196a9595b81936c 100644 (file)
 
                #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);