x86 setup: use X86_CR0_PE macro instead of hard-coded constant
authorH. Peter Anvin <hpa@zytor.com>
Wed, 30 Jan 2008 12:33:02 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:02 +0000 (13:33 +0100)
To set CR0.PE, use the X86_CR0_PE macro defined in
<asm/processor-flags.h> instead of hardcoding it as a constant (1).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/boot/pmjump.S

index f7153d0d476e8beb8d38c1a8bfe3d0088968a5b0..f5402d51f7c3d1ff534a009d54d438a3cfa54ec8 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #include <asm/boot.h>
+#include <asm/processor-flags.h>
 #include <asm/segment.h>
 
        .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: