From: Diego Nieto Cid <[email protected]> --- kern/debug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kern/debug.c b/kern/debug.c
index 9fa21190..a3bec815 100644
--- a/kern/debug.c
+++ b/kern/debug.c
@@ -121,9 +121,9 @@ void
panic_init(void)
{
#if NCPUS > 1
- simple_lock_init(&Assert_print_lock);
+ simple_lock_init_irq(&Assert_print_lock);
#endif
- simple_lock_init(&panic_lock);
+ simple_lock_init_irq(&panic_lock);
}
#if ! MACH_KBD
--
2.53.0
