projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a160092
)
x86: Fix up CONFIG_X86_64 check
author
Simon Glass
<sjg@chromium.org>
Mon, 16 Jan 2017 14:04:00 +0000
(07:04 -0700)
committer
Bin Meng
<bmeng.cn@gmail.com>
Mon, 6 Feb 2017 03:38:46 +0000
(11:38 +0800)
When SPL and U-Boot proper have different settings for this flag, we need to
use the correct one. Fix this up in the interrupt code.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/i386/interrupt.c
patch
|
blob
|
history
diff --git
a/arch/x86/cpu/i386/interrupt.c
b/arch/x86/cpu/i386/interrupt.c
index 8dfbb4880fd40a2149f6b833eedfdd8513170cd5..a05830326b5461b29fcb42cc89b9d09e4a9fc61a 100644
(file)
--- a/
arch/x86/cpu/i386/interrupt.c
+++ b/
arch/x86/cpu/i386/interrupt.c
@@
-234,7
+234,7
@@
int disable_interrupts(void)
{
long flags;
-#if
def CONFIG_X86_64
+#if
CONFIG_IS_ENABLED(X86_64)
asm volatile ("pushfq ; popq %0 ; cli\n" : "=g" (flags) : );
#else
asm volatile ("pushfl ; popl %0 ; cli\n" : "=g" (flags) : );