Skip to contentSkip to conversation

arch/x86/cpu: Call x86_cpu_reinit_f for 64-bits

PATCH In review Jeremy Compostella 1 participant 1 message Mar 19, 2025 x86

lore
Share & tools
lore
#0 lore raw

PATCH 2/5 arch/x86/cpu: Call x86_cpu_reinit_f for 64-bits

As both CONFIG_X86_RUN_64BIT and X86_RUN_64BIT_NO_SPL cases run U-Boot in 64-bit mode with the CPU fully initialized already.

---
 arch/x86/cpu/coreboot/coreboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/cpu/coreboot/coreboot.c +1 -1
index fa7430b436f..d0719d1a405 100644
@@ -22,7 +22,7 @@ int arch_cpu_init(void)
 {
 	int ret;
 
-	ret = IS_ENABLED(CONFIG_X86_RUN_64BIT) ? x86_cpu_reinit_f() :
+	ret = IS_ENABLED(CONFIG_X86_64) ? x86_cpu_reinit_f() :
 		x86_cpu_init_f();
 	if (ret)
 		return ret;
Signature · 1 line
2.48.1