Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc check emul flags for EMUL_HAS_SYS___sys...



details:   https://anonhg.NetBSD.org/src/rev/d0e99771e8a4
branches:  trunk
changeset: 499917:d0e99771e8a4
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Dec 01 19:50:17 2000 +0000

description:
check emul flags for EMUL_HAS_SYS___syscall instead of comparing
callp to sysent; the COMPAT_AOUT hack is gone

diffstat:

 sys/arch/sparc/sparc/trap.c |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (41 lines):

diff -r 3370fed2296c -r d0e99771e8a4 sys/arch/sparc/sparc/trap.c
--- a/sys/arch/sparc/sparc/trap.c       Fri Dec 01 19:41:49 2000 +0000
+++ b/sys/arch/sparc/sparc/trap.c       Fri Dec 01 19:50:17 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.96 2000/11/27 13:31:18 pk Exp $ */
+/*     $NetBSD: trap.c,v 1.97 2000/12/01 19:50:17 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -52,7 +52,6 @@
 #include "opt_ktrace.h"
 #include "opt_compat_svr4.h"
 #include "opt_compat_sunos.h"
-#include "opt_compat_aout.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -95,10 +94,6 @@
 #include <sparc/sparc/memreg.h>
 #include <sparc/sparc/cpuvar.h>
 
-#ifdef COMPAT_AOUT
-extern struct emul emul_netbsd_aout;
-#endif /* COMPAT_AOUT */
-
 #ifdef DEBUG
 int    rwindow_debug = 0;
 #endif
@@ -1196,11 +1191,7 @@
                nap--;
                break;
        case SYS___syscall:
-               if (callp != sysent
-#ifdef COMPAT_AOUT
-                   && p->p_emul != &emul_netbsd_aout   /* Our a.out */
-#endif
-               )
+               if (!(p->p_emul->e_flags & EMUL_HAS_SYS___syscall))
                        break;
                code = ap[_QUAD_LOWWORD];
                ap += 2;



Home | Main Index | Thread Index | Old Index