u-boot/arch/x86/cpu
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
..
apollolake Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
baytrail dm: Emit the arch_cpu_init_dm() even only before relocation 2023-05-11 10:25:29 +08:00
braswell common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
broadwell x86: samus: Don't include audio and SATA in TPL 2023-05-11 10:25:29 +08:00
coreboot Correct SPL uses of USB_KEYBOARD 2023-02-10 07:41:40 -05:00
efi Correct SPL uses of USB_KEYBOARD 2023-02-10 07:41:40 -05:00
i386 x86: Tidy up EFI code in interrupt_init() 2023-07-17 17:08:44 +08:00
intel_common global: Migrate CONFIG_X86_MRC_ADDR to CFG 2022-12-23 10:15:13 -05:00
ivybridge x86: ivybridge: Ensure LPC is available for GPIO base 2023-05-11 10:25:29 +08:00
qemu x86: cpu: qemu: qemu: remove SPL use with CONFIG_IS_ENABLED 2023-05-10 16:45:42 -04:00
quark dm: Emit the arch_cpu_init_dm() even only before relocation 2023-05-11 10:25:29 +08:00
queensbay x86: queensbay: Return directly if IGD / SDVO were already disabled 2021-08-03 00:03:14 +08:00
slimbootloader board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
tangier board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
x86_64 x86: Support debug UART in 64-bit mode 2023-05-11 10:25:29 +08:00
acpi_gpe.c x86: acpi_gpe: Update driver name to match devicetree 2021-02-01 15:11:41 +08:00
call32.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
config.mk x86: efi: Don't use the 64-bit link script for the EFI app 2022-01-15 10:57:22 +01:00
cpu.c x86: Adjust search range for sysinfo table 2023-05-11 10:25:29 +08:00
cpu_x86.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ioapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
irq.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
lapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile x86: Don't enable SMP in SPL 2020-07-20 09:46:46 +08:00
mp_init.c dm: dts: Convert driver model tags to use new schema 2023-02-14 09:43:26 -07:00
mtrr.c x86: Allow listing MTRRs in SPL 2023-07-17 17:08:44 +08:00
pci.c x86: pci: Use PCI_CONF1_ADDRESS() macro 2022-01-12 14:21:24 -05:00
qfw_cpu.c x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
resetvec.S x86: Reduce resetvec size 2019-10-11 17:37:38 +08:00
sipi_vector.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start.S Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
start16.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start64.S x86: Improve the trampoline in 64-bit mode 2023-07-17 17:12:07 +08:00
start_from_spl.S x86: coral: Allow init of debug UART in U-Boot proper 2021-03-27 15:04:30 +13:00
start_from_tpl.S x86: Add more comments to the start-up code 2019-10-08 13:57:36 +08:00
turbo.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
u-boot-64.lds Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
u-boot-spl.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
u-boot.lds Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASE 2022-10-31 11:01:31 -04:00
wakeup.S x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00