1 /* 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> 12 #include <asm/bugs.h> 13 #include <asm/processor.h> 14 #include <asm/processor-flags.h> 15 #include <asm/fpu/internal.h> 16 #include <asm/msr.h> 17 #include <asm/paravirt.h> 18 #include <asm/alternative.h> 19 20 void __init check_bugs(void) 21 { 22 identify_boot_cpu(); 23 #ifndef CONFIG_SMP 24 pr_info("CPU: "); 25 print_cpu_info(&boot_cpu_data); 26 #endif 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 38 init_utsname()->machine[1] = 39 '0' + (boot_cpu_data.x86 > 6 ? 6 : boot_cpu_data.x86); 40 alternative_instructions(); 41 42 fpu__init_check_bugs(); 43 } 44