diff options
-rw-r--r-- | arch/x86/kernel/head32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kernel/head32.c b/arch/x86/kernel/head32.c index cf2ce063f65a..2902ca4d5993 100644 --- a/arch/x86/kernel/head32.c +++ b/arch/x86/kernel/head32.c | |||
@@ -30,10 +30,11 @@ static void __init i386_default_early_setup(void) | |||
30 | 30 | ||
31 | asmlinkage __visible void __init i386_start_kernel(void) | 31 | asmlinkage __visible void __init i386_start_kernel(void) |
32 | { | 32 | { |
33 | cr4_init_shadow(); | 33 | /* Make sure IDT is set up before any exception happens */ |
34 | |||
35 | idt_setup_early_handler(); | 34 | idt_setup_early_handler(); |
36 | 35 | ||
36 | cr4_init_shadow(); | ||
37 | |||
37 | sanitize_boot_params(&boot_params); | 38 | sanitize_boot_params(&boot_params); |
38 | 39 | ||
39 | x86_early_init_platform_quirks(); | 40 | x86_early_init_platform_quirks(); |