panic: reorder halting of other cpus

This commit is contained in:
Matheus
2025-08-31 21:35:44 -03:00
parent 8ac79edd6b
commit 101f158ee3
+1 -1
View File
@@ -6,6 +6,7 @@
__attribute__((noreturn)) void _panic(char *msg, context_t *ctx) {
interrupt_set(false);
arch_smp_haltallothers();
printf("cpu%lu: Oops.\n", current_cpu_id());
if (msg)
@@ -14,6 +15,5 @@ __attribute__((noreturn)) void _panic(char *msg, context_t *ctx) {
if (ctx)
PRINT_CTX(ctx);
arch_smp_haltallothers();
for (;;);
}