OSDN Git Service

x86-64, espfix: Don't leak bits 31:16 of %esp returning to 16-bit stack
[android-x86/kernel.git] / init / main.c
index e83ac04..6001365 100644 (file)
@@ -606,6 +606,10 @@ asmlinkage void __init start_kernel(void)
        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();
        fork_init(totalram_pages);