/*1* Copyright (C) 1994 Linus Torvalds2* Copyright (C) 2000 SuSE3*/45#include <linux/kernel.h>6#include <linux/init.h>7#include <asm/alternative.h>8#include <asm/bugs.h>9#include <asm/processor.h>10#include <asm/mtrr.h>11#include <asm/cacheflush.h>1213void __init check_bugs(void)14{15identify_boot_cpu();16#if !defined(CONFIG_SMP)17printk(KERN_INFO "CPU: ");18print_cpu_info(&boot_cpu_data);19#endif20alternative_instructions();2122/*23* Make sure the first 2MB area is not mapped by huge pages24* There are typically fixed size MTRRs in there and overlapping25* MTRRs into large pages causes slow downs.26*27* Right now we don't do that with gbpages because there seems28* very little benefit for that case.29*/30if (!direct_gbpages)31set_memory_4k((unsigned long)__va(0), 1);32}333435