x86-64, espfix: Don't leak bits 31:16 of %esp returning to 16-bit stack
[pandora-kernel.git] / init / main.c
index 7474450..e4b75de 100644 (file)
@@ -609,6 +609,10 @@ asmlinkage void __init start_kernel(void)
 #ifdef CONFIG_X86
        if (efi_enabled(EFI_RUNTIME_SERVICES))
                efi_enter_virtual_mode();
+#endif
+#ifdef CONFIG_X86_64
+       /* Should be run before the first non-init thread is created */
+       init_espfix_bsp();
 #endif
        thread_info_cache_init();
        cred_init();