efi/x86: Drop the special GDT for the EFI thunk
authorArvind Sankar <nivedita@alum.mit.edu>
Sat, 23 May 2020 22:15:13 +0000 (18:15 -0400)
committerArd Biesheuvel <ardb@kernel.org>
Sat, 23 May 2020 22:25:15 +0000 (00:25 +0200)
commit9241dfe7f2772fc73c82eb950afb1c795d2c012c
tree6c04350f6b935f54893741a27642dd4eaec9f68e
parent6e99d3213b10ee18428d6d20715ad6c0e89ead4d
efi/x86: Drop the special GDT for the EFI thunk

Instead of using efi_gdt64 to switch back to 64-bit mode and then
switching to the real boot-time GDT, just switch to the boot-time GDT
directly. The two GDT's are identical other than efi_gdt64 not including
the 32-bit code segment.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200523221513.1642948-1-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/boot/compressed/efi_thunk_64.S