Skip to contentSkip to conversation

configs/coreboot_defconfig: Set X86_LOAD_FROM_32_BIT to use own GDT

PATCH New Benjamin Doron 1 participant 1 message Sep 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs/coreboot_defconfig: Set X86_LOAD_FROM_32_BIT to use own GDT

From: Benjamin Doron <[email protected]>

It appears that coreboot's GDT has changed recently, as the latest U-Boot builds throw general protection faults early in the entrypoint (arch/x86/cpu/start.S) while attempting to setup the segments.

When this config symbol is unset, U-Boot relies on the GDT loaded by start16.s. However, this is never compiled into coreboot builds, so instead, it uses whichever GDT was loaded by coreboot. This is subject to change.

Selecting this config symbol makes the 32-bit entrypoint code load a GDT that matches U-Boot's expectations, fixing this issue.

---
 configs/coreboot_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/coreboot_defconfig +1 -0
index dfb97a3d302c..fbf6a4fea088 100644
@@ -1,4 +1,5 @@
 CONFIG_X86=y
+CONFIG_X86_LOAD_FROM_32_BIT=y
 CONFIG_TEXT_BASE=0x1110000
 CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_NR_DRAM_BANKS=8
Signature · 1 line
2.51.0