]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
configs: Fix crash on coreboot x86
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Wed, 3 Sep 2025 07:05:01 +0000 (09:05 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 8 Sep 2025 20:28:09 +0000 (14:28 -0600)
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 <patrick.rudolph@9elements.com>
Link: https://review.coreboot.org/c/coreboot/+/87255
Reviewed-by: Tom Rini <trini@konsulko.com>
configs/coreboot_defconfig

index dfb97a3d302c2f203de90ff9c11c5ecaffa9d7ca..033746e4f91c01bc87080a8c0c95b5abe7205af8 100644 (file)
@@ -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