From eead6c0bda5414940b6c0e7c09538467689af1fb Mon Sep 17 00:00:00 2001 From: Tulio A M Mendes Date: Wed, 20 May 2026 09:07:37 -0300 Subject: [PATCH] smp: print active CPU count for single-CPU boot smp_start_aps() returned early without printing the 'CPU(s) active.' message when g_cpu_count <= 1, causing the battery test SMP1 boot pattern to fail. Now prints '[SMP] 1 CPU(s) active.' in that case. Battery test: 148/148 PASS (was 147/148 with SMP1 boot FAIL) --- src/arch/x86/smp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/arch/x86/smp.c b/src/arch/x86/smp.c index 1b84988e..9a4e6e58 100644 --- a/src/arch/x86/smp.c +++ b/src/arch/x86/smp.c @@ -171,6 +171,7 @@ int smp_enumerate(void) { int smp_start_aps(void) { if (g_cpu_count <= 1) { + kprintf("[SMP] 1 CPU(s) active.\n"); return 1; } -- 2.43.0