From b64d74abecd41a9ea563eb6197ace94b78eee675 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 11 Jan 2012 14:40:06 +0000 Subject: [PATCH] Add IRQ_RUNNING() implementation for ARM7. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5232 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/irq.h | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.25.1