]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Use the existing GDT in the ROM for 64-bit U-Boot proper
authorBin Meng <bmeng.cn@gmail.com>
Thu, 31 Jan 2019 16:22:14 +0000 (08:22 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 12 Feb 2019 06:37:17 +0000 (14:37 +0800)
commitbc1a8f0d7a57fbc1b0c03f323412a56761c82240
treed498668956511d20d2d9a746f4e94cfe79725f3d
parent916832603762847afcf112152473d305f7c502e3
x86: Use the existing GDT in the ROM for 64-bit U-Boot proper

It is unnecessary to use a RAM version GDT for 64-bit U-Boot proper.
In fact we can just use the ROM version directly, which not only
eliminates the risk of being overwritten by application, but also
removes the complexity of patching the cpu_call64().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/i386/cpu.c