diff options
-rw-r--r-- | sys/kern/kern_panic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_panic.c b/sys/kern/kern_panic.c index aec7be3..8b5fbb1 100644 --- a/sys/kern/kern_panic.c +++ b/sys/kern/kern_panic.c @@ -48,6 +48,7 @@ panic(const char *fmt, ...) va_list ap; static struct spinlock lock = {0}; + intr_mask(); spinlock_acquire(&lock); /* Never released */ __TRY_CALL(cpu_halt_others); |