From: arighi Date: Wed, 19 May 2010 10:04:03 +0000 (+0000) Subject: ARM7TDMI: restore old IRQ_ENABLED() semantic. X-Git-Tag: 2.5.0~202 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=24e36c81e1486c98337bc178fba5d252c7f490a4;p=bertos.git 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 --- 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);