From: asterix Date: Wed, 11 Jan 2012 14:40:06 +0000 (+0000) Subject: Add IRQ_RUNNING() implementation for ARM7. X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=b64d74abecd41a9ea563eb6197ace94b78eee675;hp=0fea731d20c6106133186f4771efaaaf036c8321 Add IRQ_RUNNING() implementation for ARM7. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5232 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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);