From: John Hodge Date: Thu, 20 Oct 2011 04:02:30 +0000 (+0800) Subject: Kernel/x86_64 - Added backtrace on user page fault X-Git-Tag: rel0.13~26 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=76e27a0181bf12caae27c362d3a166d3cc59bedf;p=tpg%2Facess2.git Kernel/x86_64 - Added backtrace on user page fault --- 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; }