Commit | Line | Data |
---|---|---|
1353ebb4 | 1 | /* |
1353ebb4 JF |
2 | * Copyright (C) 1994 Linus Torvalds |
3 | * | |
4 | * Cyrix stuff, June 1998 by: | |
5 | * - Rafael R. Reilova (moved everything from head.S), | |
6 | * <rreilova@ececs.uc.edu> | |
7 | * - Channing Corn (tests & fixes), | |
8 | * - Andrew D. Balsa (code cleanup). | |
9 | */ | |
10 | #include <linux/init.h> | |
11 | #include <linux/utsname.h> | |
91eb1b79 | 12 | #include <asm/bugs.h> |
1353ebb4 | 13 | #include <asm/processor.h> |
7ebad705 | 14 | #include <asm/processor-flags.h> |
952f07ec | 15 | #include <asm/fpu/internal.h> |
1353ebb4 JF |
16 | #include <asm/msr.h> |
17 | #include <asm/paravirt.h> | |
18 | #include <asm/alternative.h> | |
19 | ||
1353ebb4 JF |
20 | void __init check_bugs(void) |
21 | { | |
22 | identify_boot_cpu(); | |
23 | #ifndef CONFIG_SMP | |
c767a54b | 24 | pr_info("CPU: "); |
1353ebb4 JF |
25 | print_cpu_info(&boot_cpu_data); |
26 | #endif | |
55a36b65 BP |
27 | |
28 | /* | |
29 | * Check whether we are able to run this kernel safely on SMP. | |
30 | * | |
31 | * - i386 is no longer supported. | |
32 | * - In order to run on anything without a TSC, we need to be | |
33 | * compiled for a i486. | |
34 | */ | |
35 | if (boot_cpu_data.x86 < 4) | |
36 | panic("Kernel requires i486+ for 'invlpg' and other features"); | |
37 | ||
bfe4bb15 MV |
38 | init_utsname()->machine[1] = |
39 | '0' + (boot_cpu_data.x86 > 6 ? 6 : boot_cpu_data.x86); | |
1353ebb4 | 40 | alternative_instructions(); |
304bceda | 41 | |
4d164092 | 42 | fpu__init_check_bugs(); |
1353ebb4 | 43 | } |