From 17b44a8ce6327b4653f16fd9ba2efbd73a2a5f33 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 5 Jan 2024 22:14:31 +0100 Subject: [PATCH] kernel: Reenable stack tracing in kernel-mode exceptions Stack tracing in user-mode exceptions was moved to when a signal kills the process, but this isn't done for kernel-mode exceptions so there was no stack trace anymore. --- kernel/src/arch/x86_64/CPU.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/src/arch/x86_64/CPU.cpp b/kernel/src/arch/x86_64/CPU.cpp index f0cadfea..f965ca08 100644 --- a/kernel/src/arch/x86_64/CPU.cpp +++ b/kernel/src/arch/x86_64/CPU.cpp @@ -105,6 +105,8 @@ void handle_cpu_exception(int signo, const char* err, Registers* regs) return; } + CPU::print_stack_trace_at(regs); + CPU::efficient_halt(); }