Kernel/x86_64 - Added backtrace on user page fault
authorJohn Hodge <[email protected]>
Thu, 20 Oct 2011 04:02:30 +0000 (12:02 +0800)
committerJohn Hodge <[email protected]>
Thu, 20 Oct 2011 04:02:30 +0000 (12:02 +0800)
Kernel/arch/x86_64/mm_virt.c

index 9367a4f..c04fcf3 100644 (file)
@@ -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;
        }

UCC git Repository :: git.ucc.asn.au