configs: Fix crash on coreboot x86
PATCH 1/1 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
--- configs/coreboot_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/coreboot_defconfig +1 -0
@@ -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
Signature · 1 line
2.51.0
Quoted 11 lines · Patrick Rudolph
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]>
Glad to see this. We should likely update coreboot in CI more often.
Signature · 1 line
Tom
Quoted 8 lines · Patrick Rudolph
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.
[...]
Applied to u-boot/master, thanks!
[1/1] configs: Fix crash on coreboot x86
commit: 77ef938212b1b273389ea1560b999e79a6c285b3
Signature · 1 line
Tom