Booting u-boot as payload with coreboot's main branch is currently broken since commit [1] on x86 as U-boot assumes the active GDT matches what U-Boot would have installed in start16.S.
Make no assumptions and always load the GDT when building as coreboot payload to make sure the segment registers are actually matching the GDT. Fixes #GP seen when booting U-Boot as coreboot payload. 1: https://review.coreboot.org/c/coreboot/+/87255 Signed-off-by: Patrick Rudolph <[email protected]> --- configs/coreboot_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/coreboot_defconfig b/configs/coreboot_defconfig index dfb97a3d302..033746e4f91 100644 --- a/configs/coreboot_defconfig +++ b/configs/coreboot_defconfig @@ -66,3 +66,4 @@ CONFIG_CONSOLE_SCROLL_LINES=5 CONFIG_CMD_DHRYSTONE=y # CONFIG_GZIP is not set CONFIG_SMBIOS_PARSER=y +CONFIG_X86_LOAD_FROM_32_BIT=y -- 2.51.0

