mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
panic: only halt other cpus if needed
This commit is contained in:
@@ -6,7 +6,9 @@
|
|||||||
|
|
||||||
__attribute__((noreturn)) void _panic(char *msg, context_t *ctx) {
|
__attribute__((noreturn)) void _panic(char *msg, context_t *ctx) {
|
||||||
interrupt_set(false);
|
interrupt_set(false);
|
||||||
arch_smp_haltallothers();
|
if (arch_smp_cpusawake > 1)
|
||||||
|
arch_smp_haltallothers();
|
||||||
|
|
||||||
printf("cpu%lu: Oops.\n", current_cpu_id());
|
printf("cpu%lu: Oops.\n", current_cpu_id());
|
||||||
|
|
||||||
if (msg)
|
if (msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user