diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2011-02-12 15:11:32 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2011-02-12 15:11:32 +1100 |
commit | 0c24c9cc71cb3e0976a4806d57450e79b349fb40 (patch) | |
tree | 6a4cddc7fd1e317dab27889a22ad50f7013e7879 /arch/i386/cpu/interrupts.c | |
parent | c53fd2bb6dc63c10fd2817f3041de24fd277255b (diff) | |
download | u-boot-imx-0c24c9cc71cb3e0976a4806d57450e79b349fb40.zip u-boot-imx-0c24c9cc71cb3e0976a4806d57450e79b349fb40.tar.gz u-boot-imx-0c24c9cc71cb3e0976a4806d57450e79b349fb40.tar.bz2 |
x86: Add processor flags header from linux
Diffstat (limited to 'arch/i386/cpu/interrupts.c')
-rw-r--r-- | arch/i386/cpu/interrupts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/i386/cpu/interrupts.c b/arch/i386/cpu/interrupts.c index cdff3d9..1cefe02 100644 --- a/arch/i386/cpu/interrupts.c +++ b/arch/i386/cpu/interrupts.c @@ -30,6 +30,7 @@ #include <common.h> #include <asm/interrupt.h> #include <asm/io.h> +#include <asm/processor-flags.h> #define DECLARE_INTERRUPT(x) \ ".globl irq_"#x"\n" \ @@ -237,7 +238,7 @@ int disable_interrupts(void) asm volatile ("pushfl ; popl %0 ; cli\n" : "=g" (flags) : ); - return (flags&0x200); /* IE flags is bit 9 */ + return flags & X86_EFLAGS_IF; /* IE flags is bit 9 */ } /* IRQ Low-Level Service Routine */ |