u-boot/arch/x86
Simon Glass 8f015d3781 x86: Improve the trampoline in 64-bit mode
At present this leaves the stack at the pre-relocation value. This is not
ideal since we want to have U-Boot running entirely from the top of
memory.

In addition, the new global_data pointer is not actually used, since
the global_data pointer itself is relocated, then the pre-relocation value
is changed, so the effective value (after relocation) does not update.

Adjust the implementation to follow the 32-bit code more closely, with a
trampoline function which is passed the new stack and global_data pointer.
This ensures that the correct values come through even when relocating.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2023-07-17 17:12:07 +08:00
..
cpu x86: Improve the trampoline in 64-bit mode 2023-07-17 17:12:07 +08:00
dts Merge branch 'master' into next 2023-03-27 15:19:57 -04:00
include/asm x86: Improve the trampoline in 64-bit mode 2023-07-17 17:12:07 +08:00
lib x86: Show an error when a BIOS exception occurs 2023-07-17 17:08:44 +08:00
config.mk x86: Pass -z execstack for EFI payload flags 2023-02-23 13:29:20 -05:00
Kconfig efi: Set RUN_64BIT correctly for the EFI app 2023-03-25 11:07:21 +01:00
Makefile x86: Allow 16-bit init to be in TPL 2019-05-08 13:02:13 +08:00