x86: Use the same GDT when jumping to long mode
authorSimon Glass <sjg@chromium.org>
Sat, 15 Mar 2025 14:25:38 +0000 (14:25 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Apr 2025 17:41:55 +0000 (11:41 -0600)
commitf5b1c643b41214b0c04db827c539a278aee76255
treed8e8ba3a14079f8ffd37aab766266884ba706108
parentf5f1ed8ae7395dbffa611823457a3beeda462577
x86: Use the same GDT when jumping to long mode

Make use the existing GDT which now includes entries for 64-bit code.
Leave the interrupt descriptors alone. They can be tidied up once U-Boot
starts up.

With this, kvm mode works with QEMU.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/31
arch/x86/cpu/i386/call64.S