diff options
author | Joerg Roedel <jroedel@suse.de> | 2020-09-07 15:15:30 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-09-07 21:33:17 +0200 |
commit | 866b556efa1295934ed0bc20c2f208c93a873fb0 (patch) | |
tree | bf24afe78791c6f0f416f2ccdd269efc91a19c6f /arch/x86/include/asm/setup.h | |
parent | 4bed2266cc6f9c3f6cd91378ea4fc76edde674cf (diff) | |
download | linux-stable-866b556efa1295934ed0bc20c2f208c93a873fb0.tar.gz linux-stable-866b556efa1295934ed0bc20c2f208c93a873fb0.tar.bz2 linux-stable-866b556efa1295934ed0bc20c2f208c93a873fb0.zip |
x86/head/64: Install startup GDT
Handling exceptions during boot requires a working GDT. The kernel GDT
can't be used on the direct mapping, so load a startup GDT and setup
segments.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-30-joro@8bytes.org
Diffstat (limited to 'arch/x86/include/asm/setup.h')
-rw-r--r-- | arch/x86/include/asm/setup.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h index 84b645cc8bc9..5c2fd05bd52c 100644 --- a/arch/x86/include/asm/setup.h +++ b/arch/x86/include/asm/setup.h @@ -48,6 +48,7 @@ extern void reserve_standard_io_resources(void); extern void i386_reserve_resources(void); extern unsigned long __startup_64(unsigned long physaddr, struct boot_params *bp); extern unsigned long __startup_secondary_64(void); +extern void startup_64_setup_env(unsigned long physbase); extern int early_make_pgtable(unsigned long address); #ifdef CONFIG_X86_INTEL_MID |