From 76e27a0181bf12caae27c362d3a166d3cc59bedf Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 20 Oct 2011 12:02:30 +0800 Subject: [PATCH] Kernel/x86_64 - Added backtrace on user page fault --- Kernel/arch/x86_64/mm_virt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Kernel/arch/x86_64/mm_virt.c b/Kernel/arch/x86_64/mm_virt.c index 9367a4f2..c04fcf3a 100644 --- a/Kernel/arch/x86_64/mm_virt.c +++ b/Kernel/arch/x86_64/mm_virt.c @@ -202,6 +202,7 @@ int MM_PageFault(tVAddr Addr, Uint ErrorCode, tRegs *Regs) Warning("User Pagefault: Instruction at %04x:%p accessed %p", Regs->CS, Regs->RIP, Addr); __asm__ __volatile__ ("sti"); // Restart IRQs + Error_Backtrace(Regs->RIP, Regs->RBP); Threads_SegFault(Addr); return 0; } -- 2.20.1