From: Ben Gras Date: Sat, 3 Oct 2009 12:23:02 +0000 (+0000) Subject: little more info in pagefault exception handler. X-Git-Tag: v3.1.5~30 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=88a12c70d2d1dab1e238057330357f3a5e77ece0;p=minix.git little more info in pagefault exception handler. --- diff --git a/kernel/arch/i386/exception.c b/kernel/arch/i386/exception.c index 995e9601b..79ab15860 100755 --- a/kernel/arch/i386/exception.c +++ b/kernel/arch/i386/exception.c @@ -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;