]> git.sur5r.net Git - u-boot/blobdiff - arch/i386/cpu/interrupts.c
Merge branch 'master' of git://git.denx.de/u-boot-mips
[u-boot] / arch / i386 / cpu / interrupts.c
index cdff3d934d6a7094bf6d5c105c09e059ccb36822..1cefe02c86546baab4d8847ae7dfc2472123ac0d 100644 (file)
@@ -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 */