mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 14:40:41 +00:00
002610f620
Currently the FSP execution environment GDT is setup by U-Boot in arch/x86/cpu/start16.S, which works pretty well. But if we try to move the FspInitEntry call a little bit later to better fit into U-Boot's initialization sequence, FSP will fail to bring up the AP due to #GP fault as AP's GDT is duplicated from BSP whose GDT is now moved into CAR, and unfortunately FSP calls AP initialization after it disables the CAR. So basically the BSP's GDT still refers to the one in the CAR, whose content is no longer available, so when AP starts up and loads its segment register, it blows up. To resolve this, we load GDT before calling into FspInitEntry. The GDT is the same one used in arch/x86/cpu/start16.S, which is in the ROM and exists forever. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Andrew Bradford <andrew.bradford@kodakalaris.com> Tested-by: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
fsp | ||
asm-offsets.c | ||
bios.c | ||
bios.h | ||
bios_asm.S | ||
bios_interrupts.c | ||
bootm.c | ||
cmd_boot.c | ||
cmd_hob.c | ||
cmd_mtrr.c | ||
gcc.c | ||
init_helpers.c | ||
interrupts.c | ||
lpc-uclass.c | ||
Makefile | ||
pcat_interrupts.c | ||
pcat_timer.c | ||
pch-uclass.c | ||
pci_type1.c | ||
physmem.c | ||
pirq_routing.c | ||
ramtest.c | ||
relocate.c | ||
sfi.c | ||
string.c | ||
tables.c | ||
tsc_timer.c | ||
zimage.c |