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)
commit77ef938212b1b273389ea1560b999e79a6c285b3
treec2f39bc1afccf7fdc78550d9cd51a5605dbaabc3
parent7a4f3c5652157cbb3d26a7728bfe537ea483efc9
configs: Fix crash on coreboot x86

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