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
This commit is contained in:
Joerg Roedel 2020-09-07 15:15:30 +02:00 • committed by Borislav Petkov
commit 866b556efa
3 changed files with 48 additions and 0 deletions