panic: only halt other cpus if needed

This commit is contained in:
Matheus
2025-09-18 20:24:45 -03:00
parent f34bce058d
commit f5259684e5
+3 -1
View File
@@ -6,7 +6,9 @@
__attribute__((noreturn)) void _panic(char *msg, context_t *ctx) {
interrupt_set(false);
arch_smp_haltallothers();
if (arch_smp_cpusawake > 1)
arch_smp_haltallothers();
printf("cpu%lu: Oops.\n", current_cpu_id());
if (msg)