diff options
author | Joerg Roedel <jroedel@suse.de> | 2020-09-07 16:16:08 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-09-09 12:33:20 +0300 |
commit | 520d030852b4c9babfce9a79d8b5320b6b5545e6 (patch) | |
tree | eba2437f1b2a41d21ede8ca9e81e1fb0f7ebd8a5 /arch/x86/kernel/smpboot.c | |
parent | 8940ac9ced8bc1c48c4e28b0784e3234c9d14469 (diff) | |
download | linux-520d030852b4c9babfce9a79d8b5320b6b5545e6.tar.xz |
x86/smpboot: Load TSS and getcpu GDT entry before loading IDT
The IDT on 64-bit contains vectors which use paranoid_entry() and/or IST
stacks. To make these vectors work, the TSS and the getcpu GDT entry need
to be set up before the IDT is loaded.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-68-joro@8bytes.org
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index f5ef689dd62a..de776b2e6046 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -227,7 +227,7 @@ static void notrace start_secondary(void *unused) load_cr3(swapper_pg_dir); __flush_tlb_all(); #endif - load_current_idt(); + cpu_init_exception_handling(); cpu_init(); x86_cpuinit.early_percpu_clock_init(); preempt_disable(); |