From: Ben Gras Date: Thu, 11 Dec 2008 14:16:40 +0000 (+0000) Subject: system image processes with full address space are allowed to have pagefaults. X-Git-Tag: v3.1.4~208 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=e911d44a5cecd2d75e8c07e374ddb238527f028d;p=minix.git system image processes with full address space are allowed to have pagefaults. --- diff --git a/kernel/arch/i386/exception.c b/kernel/arch/i386/exception.c index 7fa7cc686..19324c8cb 100755 --- a/kernel/arch/i386/exception.c +++ b/kernel/arch/i386/exception.c @@ -32,7 +32,7 @@ void pagefault(struct proc *pr, int trap_errno) minix_panic("PAGEFAULT set", pr->p_endpoint); RTS_LOCK_SET(pr, PAGEFAULT); - if(pr->p_endpoint <= INIT_PROC_NR) { + if(pr->p_endpoint <= INIT_PROC_NR && !(pr->p_misc_flags & MF_FULLVM)) { /* Page fault we can't / don't want to * handle. */ @@ -174,7 +174,8 @@ PUBLIC void proc_stacktrace(struct proc *proc) v_bp = proc->p_reg.fp; - kprintf("ep %d pc 0x%lx stack ", proc->p_endpoint, proc->p_reg.pc); + kprintf("%s / %d pc 0x%lx stack ", + proc->p_name, proc->p_endpoint, proc->p_reg.pc); while(v_bp) { if(data_copy(proc->p_endpoint, v_bp,