2 * Copyright (C) 1994 Linus Torvalds
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).
10 #include <linux/init.h>
11 #include <linux/utsname.h>
13 #include <asm/processor.h>
14 #include <asm/processor-flags.h>
15 #include <asm/fpu/internal.h>
17 #include <asm/paravirt.h>
18 #include <asm/alternative.h>
20 void __init
check_bugs(void)
25 print_cpu_info(&boot_cpu_data
);
29 * Check whether we are able to run this kernel safely on SMP.
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.
35 if (boot_cpu_data
.x86
< 4)
36 panic("Kernel requires i486+ for 'invlpg' and other features");
38 init_utsname()->machine
[1] =
39 '0' + (boot_cpu_data
.x86
> 6 ? 6 : boot_cpu_data
.x86
);
40 alternative_instructions();
42 fpu__init_check_bugs();