From 406d49ec0346e4c8a55109fd698e8364f16cfada Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 16 May 2024 00:45:45 -0400 Subject: kernel: panic: Call intr_mask() first Signed-off-by: Ian Moffett --- sys/kern/kern_panic.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3