]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86/head64.c: Early update ucode in 64-bit
authorFenghua Yu <fenghua.yu@intel.com>
Fri, 21 Dec 2012 07:44:30 +0000 (23:44 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 31 Jan 2013 21:20:24 +0000 (13:20 -0800)
This updates ucode on BSP in 64-bit mode. Paging and virtual address are
working now.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Link: http://lkml.kernel.org/r/1356075872-3054-11-git-send-email-fenghua.yu@intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/head64.c

index 57334f4cd3af1765a4dd3a63bcf141fe49a6f0f3..3ff35705fa6e497fcf0171b7a1348ed8ce15ba97 100644 (file)
@@ -26,6 +26,7 @@
 #include <asm/e820.h>
 #include <asm/bios_ebda.h>
 #include <asm/bootparam_utils.h>
+#include <asm/microcode.h>
 
 /*
  * Manage page tables very early on.
@@ -170,6 +171,11 @@ void __init x86_64_start_kernel(char * real_mode_data)
 
        copy_bootdata(__va(real_mode_data));
 
+       /*
+        * Load microcode early on BSP.
+        */
+       load_ucode_bsp();
+
        if (console_loglevel == 10)
                early_printk("Kernel alive\n");