summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/head_64.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-04-19 02:16:47 +0200
committerH. Peter Anvin <hpa@linux.intel.com>2012-04-20 00:07:49 +0200
commit84f4fc524eed040660bd4ebc8cba259d8afe8461 (patch)
tree887728e36e36a2596e846536c86ebac868ca08cc /arch/x86/kernel/head_64.S
parentx86, nop: Make the ASM_NOP* macros work from assembly (diff)
downloadlinux-84f4fc524eed040660bd4ebc8cba259d8afe8461.tar.xz
linux-84f4fc524eed040660bd4ebc8cba259d8afe8461.zip
x86: Add symbolic constant for exceptions with error code
Add a symbolic constant for the bitmask which states which exceptions carry an error code. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Link: http://lkml.kernel.org/r/1334794610-5546-3-git-send-email-hpa@zytor.com
Diffstat (limited to 'arch/x86/kernel/head_64.S')
-rw-r--r--arch/x86/kernel/head_64.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
index 40f4eb3766d1..adf52e85d551 100644
--- a/arch/x86/kernel/head_64.S
+++ b/arch/x86/kernel/head_64.S
@@ -295,7 +295,7 @@ ENTRY(early_idt_handler)
ja 0f
movl $1,%eax
salq %cl,%rax
- testl $0x27d00,%eax
+ testl $EXCEPTION_ERRCODE_MASK,%eax
je 0f
popq %r8 # get error code
0: movq 0(%rsp),%rcx # get ip