diff options
author | Dave Jones <davej@redhat.com> | 2008-01-30 07:30:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:30:39 -0500 |
commit | 7ebad705340f35276326ed93a43190e62f725f77 (patch) | |
tree | 74ea4a90df146eadc51884833f104a9c1d4a786f /arch/x86/kernel/cpu/bugs.c | |
parent | 3578facf737dc9a60ed19a83458bd9cfdc2af233 (diff) |
x86: use CR0 defines.
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/bugs.c')
-rw-r--r-- | arch/x86/kernel/cpu/bugs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 205fd5ba57f7..a96abd453e0d 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/utsname.h> | 11 | #include <linux/utsname.h> |
12 | #include <asm/bugs.h> | 12 | #include <asm/bugs.h> |
13 | #include <asm/processor.h> | 13 | #include <asm/processor.h> |
14 | #include <asm/processor-flags.h> | ||
14 | #include <asm/i387.h> | 15 | #include <asm/i387.h> |
15 | #include <asm/msr.h> | 16 | #include <asm/msr.h> |
16 | #include <asm/paravirt.h> | 17 | #include <asm/paravirt.h> |
@@ -35,7 +36,7 @@ __setup("mca-pentium", mca_pentium); | |||
35 | static int __init no_387(char *s) | 36 | static int __init no_387(char *s) |
36 | { | 37 | { |
37 | boot_cpu_data.hard_math = 0; | 38 | boot_cpu_data.hard_math = 0; |
38 | write_cr0(0xE | read_cr0()); | 39 | write_cr0(X86_CR0_TS | X86_CR0_EM | X86_CR0_MP | read_cr0()); |
39 | return 1; | 40 | return 1; |
40 | } | 41 | } |
41 | 42 | ||