Kernel: Clenup stacktrace printing on exception

Start from current ip and bp. This removes kernel call stack to debug
printing function from the stack trace
This commit is contained in:
2026-01-16 16:31:35 +02:00
parent d3df00f0ba
commit 5d62fa3f10
3 changed files with 20 additions and 10 deletions

View File

@@ -277,7 +277,11 @@ namespace Kernel
#endif
if (isr == ISR::PageFault)
PageTable::current().debug_dump();
Debug::dump_stack_trace();
#if ARCH(x86_64)
Debug::dump_stack_trace(interrupt_stack->ip, regs->rbp);
#elif ARCH(i686)
Debug::dump_stack_trace(interrupt_stack->ip, regs->ebp);
#endif
Debug::s_debug_lock.unlock(InterruptState::Disabled);