diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2011-02-12 15:11:32 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2011-02-12 15:11:32 +1100 |
commit | 0c24c9cc71cb3e0976a4806d57450e79b349fb40 (patch) | |
tree | 6a4cddc7fd1e317dab27889a22ad50f7013e7879 /arch/i386/cpu/start16.S | |
parent | c53fd2bb6dc63c10fd2817f3041de24fd277255b (diff) | |
download | blackbird-obmc-uboot-0c24c9cc71cb3e0976a4806d57450e79b349fb40.tar.gz blackbird-obmc-uboot-0c24c9cc71cb3e0976a4806d57450e79b349fb40.zip |
x86: Add processor flags header from linux
Diffstat (limited to 'arch/i386/cpu/start16.S')
-rw-r--r-- | arch/i386/cpu/start16.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/i386/cpu/start16.S b/arch/i386/cpu/start16.S index 0a5823d3c2..7dc5358366 100644 --- a/arch/i386/cpu/start16.S +++ b/arch/i386/cpu/start16.S @@ -23,6 +23,7 @@ */ #include <asm/global_data.h> +#include <asm/processor-flags.h> #define BOOT_SEG 0xffff0000 /* linear segment of boot code */ #define a32 .byte 0x67; @@ -45,7 +46,7 @@ board_init16_ret: /* Turn of cache (this might require a 486-class CPU) */ movl %cr0, %eax - orl $0x60000000, %eax + orl $(X86_CR0_NW & X86_CR0_CD), %eax movl %eax, %cr0 wbinvd @@ -55,7 +56,7 @@ o32 cs lgdt gdt_ptr /* Now, we enter protected mode */ movl %cr0, %eax - orl $1, %eax + orl $X86_CR0_PE, %eax movl %eax, %cr0 /* Flush the prefetch queue */ |