]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commitdiff
smp: print active CPU count for single-CPU boot
authorTulio A M Mendes <[email protected]>
Wed, 20 May 2026 12:07:37 +0000 (09:07 -0300)
committerTulio A M Mendes <[email protected]>
Wed, 20 May 2026 12:07:37 +0000 (09:07 -0300)
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

index 1b84988e2b26bf7ca5a2a1817e0a4f1e1cf26c1a..9a4e6e58a0ef723b653bddc2aca6a75d79f4e4b9 100644 (file)
@@ -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;
     }