bugs_64.c 788 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (C) 1994 Linus Torvalds
  3. * Copyright (C) 2000 SuSE
  4. */
  5. #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>
  12. void __init check_bugs(void)
  13. {
  14. identify_boot_cpu();
  15. #if !defined(CONFIG_SMP)
  16. printk(KERN_INFO "CPU: ");
  17. print_cpu_info(&boot_cpu_data);
  18. #endif
  19. alternative_instructions();
  20. /*
  21. * Make sure the first 2MB area is not mapped by huge pages
  22. * There are typically fixed size MTRRs in there and overlapping
  23. * MTRRs into large pages causes slow downs.
  24. *
  25. * Right now we don't do that with gbpages because there seems
  26. * very little benefit for that case.
  27. */
  28. if (!direct_gbpages)
  29. set_memory_4k((unsigned long)__va(0), 1);
  30. }