Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm32/arm32 More cleanup.



details:   https://anonhg.NetBSD.org/src/rev/acfc97fdafed
branches:  trunk
changeset: 500443:acfc97fdafed
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Dec 12 05:26:38 2000 +0000

description:
More cleanup.

diffstat:

 sys/arch/arm32/arm32/ast.c     |  10 +++++-----
 sys/arch/arm32/arm32/syscall.c |  13 +------------
 2 files changed, 6 insertions(+), 17 deletions(-)

diffs (80 lines):

diff -r a748f76ef5a5 -r acfc97fdafed sys/arch/arm32/arm32/ast.c
--- a/sys/arch/arm32/arm32/ast.c        Tue Dec 12 05:21:02 2000 +0000
+++ b/sys/arch/arm32/arm32/ast.c        Tue Dec 12 05:26:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ast.c,v 1.20 2000/12/12 05:21:02 mycroft Exp $ */
+/*     $NetBSD: ast.c,v 1.21 2000/12/12 05:26:38 mycroft Exp $ */
 
 /*
  * Copyright (c) 1994,1995 Mark Brinicombe
@@ -66,7 +66,7 @@
 {
        int sig;
 
-#ifdef DIAGNOSTIC
+#ifdef DEBUG
        if (p == NULL)
                panic("userret: p=0 curproc=%p", curproc);
     
@@ -79,7 +79,7 @@
                Debugger();
 #endif /* DDB */
        }
-#endif /* DIAGNOSTIC */
+#endif /* DEBUG */
 
        /* take pending signals */
 
@@ -105,14 +105,14 @@
 
        curcpu()->ci_schedstate.spc_curpriority = p->p_priority;
 
-#ifdef DIAGNOSTIC
+#ifdef DEBUG
        if (current_spl_level != _SPL_0) {
                printf("userret: spl level=%d on exit\n", current_spl_level);
 #ifdef DDB
                Debugger();
 #endif /* DDB */
        }
-#endif /* DIAGNOSTIC */
+#endif /* DEBUG */
 }
 
 
diff -r a748f76ef5a5 -r acfc97fdafed sys/arch/arm32/arm32/syscall.c
--- a/sys/arch/arm32/arm32/syscall.c    Tue Dec 12 05:21:02 2000 +0000
+++ b/sys/arch/arm32/arm32/syscall.c    Tue Dec 12 05:26:38 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.c,v 1.32 2000/12/12 05:21:02 mycroft Exp $     */
+/*     $NetBSD: syscall.c,v 1.33 2000/12/12 05:26:38 mycroft Exp $     */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -42,7 +42,6 @@
 
 #include "opt_ddb.h"
 #include "opt_ktrace.h"
-#include "opt_pmap_debug.h"
 #include "opt_syscall_debug.h"
 
 #include <sys/param.h>
@@ -63,18 +62,8 @@
 
 #include <arm32/arm32/disassem.h>
 
-#ifdef PMAP_DEBUG
-extern int pmap_debug_level;
-#endif
-
 u_int arm700bugcount = 0;
 
-/* Macors to simplify the switch statement below */
-
-#define SYSCALL_SPECIAL_RETURN                 \
-       userret(p);                             \
-       return;
-
 /*
  * syscall(frame):
  *



Home | Main Index | Thread Index | Old Index