Skip to content

Commit

Permalink
panic: Print interrupt stacks regardless
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
heatd committed May 12, 2024
1 parent 020772f commit 3cc5484
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/kernel/panic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3cc5484

Please sign in to comment.