Add IRQ_RUNNING() implementation for ARM7.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jan 2012 14:40:06 +0000 (14:40 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 11 Jan 2012 14:40:06 +0000 (14:40 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5232 38d2e660-2303-0410-9eaa-f027e97ec537

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);