summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/head_32.S
diff options
context:
space:
mode:
authorWang YanQing <udknight@gmail.com>2013-06-28 22:45:16 +0800
committerH. Peter Anvin <hpa@linux.intel.com>2013-06-28 15:27:29 -0700
commit237d1548543312fcc8c99d302ab68fbf8ef6f97f (patch)
tree2e3caeeddde3e72d849e707b7022cf1829626fb9 /arch/x86/kernel/head_32.S
parent62122fd7dadac09704782d8bc051fb898a0272bd (diff)
downloadop-kernel-dev-237d1548543312fcc8c99d302ab68fbf8ef6f97f.zip
op-kernel-dev-237d1548543312fcc8c99d302ab68fbf8ef6f97f.tar.gz
x86: Fix override new_cpu_data.x86 with 486
We should set X86 to 486 before use cpuid to detect the cpu type, if we set X86 to 486 after cpuid, then we will get 486 until cpu_detect runs. Signed-off-by: Wang YanQing <udknight@gmail.com> Link: http://lkml.kernel.org/r/20130628144516.GA2177@udknight Acked-by: Borislav Petkov <bp@suse.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/head_32.S')
-rw-r--r--arch/x86/kernel/head_32.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
index e65ddc6..fe79573 100644
--- a/arch/x86/kernel/head_32.S
+++ b/arch/x86/kernel/head_32.S
@@ -410,6 +410,7 @@ enable_paging:
/*
* Check if it is 486
*/
+ movb $4,X86 # at least 486
cmpl $-1,X86_CPUID
je is486
@@ -437,7 +438,6 @@ enable_paging:
movl %edx,X86_CAPABILITY
is486:
- movb $4,X86
movl $0x50022,%ecx # set AM, WP, NE and MP
movl %cr0,%eax
andl $0x80000011,%eax # Save PG,PE,ET
OpenPOWER on IntegriCloud