little more info in pagefault exception handler.

This commit is contained in:
Ben Gras 2009-10-03 12:23:02 +00:00
parent 6bd3002f06
commit 88a12c70d2

View file

@ -70,6 +70,10 @@ void pagefault(vir_bytes old_eip, struct proc *pr, int trap_errno,
pr->p_endpoint, pr->p_name, pr->p_reg.pc,
pagefaultcr2, trap_errno, k_reenter);
proc_stacktrace(pr);
if(pr->p_endpoint != SYSTEM) {
proc_stacktrace(proc_addr(SYSTEM));
}
kprintf("pc of pagefault: 0x%lx\n", test_eip);
minix_panic("page fault in system process", pr->p_endpoint);
return;