little more info in pagefault exception handler.
This commit is contained in:
parent
6bd3002f06
commit
88a12c70d2
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue