From 24e36c81e1486c98337bc178fba5d252c7f490a4 Mon Sep 17 00:00:00 2001 From: arighi Date: Wed, 19 May 2010 10:04:03 +0000 Subject: [PATCH] ARM7TDMI: restore old IRQ_ENABLED() semantic. Check if at least one between FIQs or IRQs are enabled to determine if interrupts are enabled. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3715 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/irq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/cpu/irq.h b/bertos/cpu/irq.h index 40571142..bda8b497 100644 --- a/bertos/cpu/irq.h +++ b/bertos/cpu/irq.h @@ -286,7 +286,7 @@ sreg; \ }) - #define IRQ_ENABLED() (!(CPU_READ_FLAGS() & 0x80)) + #define IRQ_ENABLED() ((CPU_READ_FLAGS() & 0xc0) != 0xc0) #if CONFIG_KERN_PREEMPT EXTERN_C void asm_irq_switch_context(void); -- 2.25.1