]> git.ipfire.org Git - thirdparty/u-boot.git/commit
x86: Add 64-bit entries to the GDT
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:25:31 +0000 (14:25 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:41:55 +0000 (11:41 -0600)
commit66f0dcb07fcccd0d05754f6d97a34f847c90a2a0
tree00ed4b6bd337fd3da462d27f456b8257e9c0227d
parent899ab6cd52a4827b80dc58d25695392da40eb8ab
x86: Add 64-bit entries to the GDT

At present it is not possible to execution 64-bit code without
installing an entire new Global Descriptor Table. This is inconvenient
since kvm does not seem to like switching into long mode with a new
table.

It isn't actually necessary, since we can just extend the existing
table. Add some new entries to this effect.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/i386/cpu.c
arch/x86/include/asm/processor.h