12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #include <linux/init.h>
- #include <linux/utsname.h>
- #include <asm/bugs.h>
- #include <asm/processor.h>
- #include <asm/processor-flags.h>
- #include <asm/fpu/internal.h>
- #include <asm/msr.h>
- #include <asm/paravirt.h>
- #include <asm/alternative.h>
- void __init check_bugs(void)
- {
- identify_boot_cpu();
- #ifndef CONFIG_SMP
- pr_info("CPU: ");
- print_cpu_info(&boot_cpu_data);
- #endif
-
- if (boot_cpu_data.x86 < 4)
- panic("Kernel requires i486+ for 'invlpg' and other features");
- init_utsname()->machine[1] =
- '0' + (boot_cpu_data.x86 > 6 ? 6 : boot_cpu_data.x86);
- alternative_instructions();
- fpu__init_check_bugs();
- }
|