Skip to content
Snippets Groups Projects
Commit 76e27a01 authored by John Hodge's avatar John Hodge
Browse files

Kernel/x86_64 - Added backtrace on user page fault

parent 5b4b4dad
No related merge requests found
...@@ -202,6 +202,7 @@ int MM_PageFault(tVAddr Addr, Uint ErrorCode, tRegs *Regs) ...@@ -202,6 +202,7 @@ int MM_PageFault(tVAddr Addr, Uint ErrorCode, tRegs *Regs)
Warning("User Pagefault: Instruction at %04x:%p accessed %p", Warning("User Pagefault: Instruction at %04x:%p accessed %p",
Regs->CS, Regs->RIP, Addr); Regs->CS, Regs->RIP, Addr);
__asm__ __volatile__ ("sti"); // Restart IRQs __asm__ __volatile__ ("sti"); // Restart IRQs
Error_Backtrace(Regs->RIP, Regs->RBP);
Threads_SegFault(Addr); Threads_SegFault(Addr);
return 0; return 0;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment