Skip to contentSkip to conversation

arch/x86/lib: Fix CONFIG_X86_64 usage in zimage.c

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

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 arch/x86/lib: Fix CONFIG_X86_64 usage in zimage.c

Correct the preprocessor directive used to check for 64-bit kernel support in the zboot_go function. The code previously checked for CONFIG_X86_RUN_64BIT, which is not the correct configuration option for determining if the kernel should run in 64-bit mode. The correct option is CONFIG_X86_64.

---
 arch/x86/lib/zimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/lib/zimage.c +1 -1
index 2eece34a073..ca3bd713ff2 100644
@@ -424,7 +424,7 @@ int zboot_go(void)
 
 	entry = state.load_address;
 	image_64bit = false;
-	if (IS_ENABLED(CONFIG_X86_RUN_64BIT) &&
+	if (IS_ENABLED(CONFIG_X86_64) &&
 	    (hdr->xloadflags & XLF_KERNEL_64)) {
 		image_64bit = true;
 	}
Signature · 1 line
2.48.1