]> Zhao Yanbai Git Server - minix.git/commitdiff
little more info in pagefault exception handler.
authorBen Gras <ben@minix3.org>
Sat, 3 Oct 2009 12:23:02 +0000 (12:23 +0000)
committerBen Gras <ben@minix3.org>
Sat, 3 Oct 2009 12:23:02 +0000 (12:23 +0000)
kernel/arch/i386/exception.c

index 995e9601b4a66f60d7458dfc15f58351ff15d2a9..79ab158607b25793258ef0bcc884a23fdf82a638 100755 (executable)
@@ -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;