]> Zhao Yanbai Git Server - minix.git/commitdiff
system image processes with full address space are allowed to have pagefaults.
authorBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:16:40 +0000 (14:16 +0000)
committerBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:16:40 +0000 (14:16 +0000)
kernel/arch/i386/exception.c

index 7fa7cc686cc25018aa40e6263fd1496e86894161..19324c8cb906eb5bc3cd9c32fb971d21da58d4c6 100755 (executable)
@@ -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,