From 3cc548430b0f7ac2ad27444895e1b9139a7ba3af Mon Sep 17 00:00:00 2001 From: Pedro Falcato Date: Sun, 12 May 2024 23:18:46 +0100 Subject: [PATCH] panic: Print interrupt stacks regardless is_in_interrupt() only fires inside IRQs, but we want this to fire on traps too. Hope the architecture handles this properly. Signed-off-by: Pedro Falcato --- kernel/kernel/panic.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/kernel/panic.cpp b/kernel/kernel/panic.cpp index fafef988f..17fbf8e2f 100644 --- a/kernel/kernel/panic.cpp +++ b/kernel/kernel/panic.cpp @@ -128,8 +128,7 @@ __attribute__((noreturn, noinline)) void panic(const char *msg, ...) pr_emerg("Stack dump: \n"); stack_trace(); - if (is_in_interrupt()) - print_int_stacks(); + print_int_stacks(); pr_emerg("Killing cpus... "); cpu_kill_other_cpus(); pr_emerg("Done.\n");