From: Cristiano Giuffrida Date: Tue, 20 Jul 2010 23:51:34 +0000 (+0000) Subject: Don't panic so easily on unexpected pagefault. X-Git-Tag: v3.1.8~174 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/rndc-confgen.html?a=commitdiff_plain;h=03bb1e575056b011e8ab563017e05b14ad61a641;p=minix.git Don't panic so easily on unexpected pagefault. --- diff --git a/kernel/arch/i386/exception.c b/kernel/arch/i386/exception.c index dfbdbd383..e623185bb 100644 --- a/kernel/arch/i386/exception.c +++ b/kernel/arch/i386/exception.c @@ -74,8 +74,8 @@ PRIVATE void pagefault( struct proc *pr, pagefaultcr2, frame->errcode, is_nested); proc_stacktrace(pr); printf("pc of pagefault: 0x%lx\n", frame->eip); - panic("page fault in system process: %d", pr->p_endpoint); - + cause_sig(proc_nr(pr), SIGSEGV); + return; }