Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Don't handle emulations overriding e_fault.



details:   https://anonhg.NetBSD.org/src/rev/74756fe4cded
branches:  trunk
changeset: 828645:74756fe4cded
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Dec 22 22:59:25 2017 +0000

description:
Don't handle emulations overriding e_fault.

No existing emulations do this.
(COMPAT_IRIX did, but was removed)

diffstat:

 sys/arch/mips/mips/trap.c |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r a911599c3bcb -r 74756fe4cded sys/arch/mips/mips/trap.c
--- a/sys/arch/mips/mips/trap.c Fri Dec 22 17:35:14 2017 +0000
+++ b/sys/arch/mips/mips/trap.c Fri Dec 22 22:59:25 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.244 2017/07/14 20:32:32 christos Exp $      */
+/*     $NetBSD: trap.c,v 1.245 2017/12/22 22:59:25 maya Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.244 2017/07/14 20:32:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.245 2017/12/22 22:59:25 maya Exp $");
 
 #include "opt_cputype.h"       /* which mips CPU levels do we support? */
 #include "opt_ddb.h"
@@ -391,11 +391,7 @@
 
                onfault = pcb->pcb_onfault;
                pcb->pcb_onfault = NULL;
-               if (p->p_emul->e_fault) {
-                       rv = (*p->p_emul->e_fault)(p, va, ftype);
-               } else {
-                       rv = uvm_fault(map, va, ftype);
-               }
+               rv = uvm_fault(map, va, ftype);
                pcb->pcb_onfault = onfault;
 
 #if defined(VMFAULT_TRACE)



Home | Main Index | Thread Index | Old Index