From: H. Peter Anvin Date: Wed, 30 Jan 2008 12:33:02 +0000 (+0100) Subject: x86 setup: use X86_CR0_PE macro instead of hard-coded constant X-Git-Tag: v2.6.25-rc1~1143^2~333 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=02a7b425e82cd0052e5eaedbae81a522c6aae6c4;p=linux-2.6-omap-h63xx.git x86 setup: use X86_CR0_PE macro instead of hard-coded constant To set CR0.PE, use the X86_CR0_PE macro defined in instead of hardcoding it as a constant (1). Signed-off-by: H. Peter Anvin Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/boot/pmjump.S b/arch/x86/boot/pmjump.S index f7153d0d476..f5402d51f7c 100644 --- a/arch/x86/boot/pmjump.S +++ b/arch/x86/boot/pmjump.S @@ -15,6 +15,7 @@ */ #include +#include #include .text @@ -39,7 +40,7 @@ protected_mode_jump: movw $__BOOT_TSS, %di movl %cr0, %edx - orb $1, %dl # Protected mode (PE) bit + orb $X86_CR0_PE, %dl # Protected mode movl %edx, %cr0 jmp 1f # Short jump to serialize on 386/486 1: