Source-Changes-HG archive

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

[src/trunk]: src/sys No point in declaring syscall_intern and syscall in a zi...



details:   https://anonhg.NetBSD.org/src/rev/295393d22fd5
branches:  trunk
changeset: 582863:295393d22fd5
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jul 10 00:45:52 2005 +0000

description:
No point in declaring syscall_intern and syscall in a zillion places.

diffstat:

 sys/arch/alpha/alpha/syscall.c    |  5 ++---
 sys/arch/arm/arm/syscall.c        |  5 ++---
 sys/arch/i386/i386/syscall.c      |  5 ++---
 sys/arch/m68k/m68k/m68k_syscall.c |  5 ++---
 sys/arch/powerpc/include/proc.h   |  6 +-----
 sys/arch/sh5/sh5/syscall.c        |  5 ++---
 sys/compat/freebsd/freebsd_exec.c |  9 ++-------
 sys/compat/pecoff/pecoff_emul.c   |  9 ++-------
 sys/compat/ultrix/ultrix_misc.c   |  9 ++-------
 sys/sys/proc.h                    |  8 +++++++-
 10 files changed, 24 insertions(+), 42 deletions(-)

diffs (260 lines):

diff -r 0363e40b7c81 -r 295393d22fd5 sys/arch/alpha/alpha/syscall.c
--- a/sys/arch/alpha/alpha/syscall.c    Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/arch/alpha/alpha/syscall.c    Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syscall.c,v 1.16 2005/07/01 18:01:44 christos Exp $ */
+/* $NetBSD: syscall.c,v 1.17 2005/07/10 00:45:52 christos Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.16 2005/07/01 18:01:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.17 2005/07/10 00:45:52 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -124,7 +124,6 @@
 #include <machine/alpha.h>
 #include <machine/userret.h>
 
-void   syscall_intern(struct proc *);
 void   syscall_plain(struct lwp *, u_int64_t, struct trapframe *);
 void   syscall_fancy(struct lwp *, u_int64_t, struct trapframe *);
 
diff -r 0363e40b7c81 -r 295393d22fd5 sys/arch/arm/arm/syscall.c
--- a/sys/arch/arm/arm/syscall.c        Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/arch/arm/arm/syscall.c        Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.c,v 1.27 2005/07/01 18:01:44 christos Exp $    */
+/*     $NetBSD: syscall.c,v 1.28 2005/07/10 00:45:52 christos Exp $    */
 
 /*-
  * Copyright (c) 2000, 2003 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.27 2005/07/01 18:01:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.28 2005/07/10 00:45:52 christos Exp $");
 
 #include <sys/device.h>
 #include <sys/errno.h>
@@ -211,7 +211,6 @@
 
 #define MAXARGS 8
 
-void syscall_intern(struct proc *);
 void syscall_plain(struct trapframe *, struct lwp *, u_int32_t);
 void syscall_fancy(struct trapframe *, struct lwp *, u_int32_t);
 
diff -r 0363e40b7c81 -r 295393d22fd5 sys/arch/i386/i386/syscall.c
--- a/sys/arch/i386/i386/syscall.c      Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/arch/i386/i386/syscall.c      Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.c,v 1.30 2005/07/01 18:01:45 christos Exp $    */
+/*     $NetBSD: syscall.c,v 1.31 2005/07/10 00:45:52 christos Exp $    */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.30 2005/07/01 18:01:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.31 2005/07/10 00:45:52 christos Exp $");
 
 #include "opt_syscall_debug.h"
 #include "opt_vm86.h"
@@ -65,7 +65,6 @@
 #include <machine/psl.h>
 #include <machine/userret.h>
 
-void syscall_intern(struct proc *);
 void syscall_plain(struct trapframe *);
 void syscall_fancy(struct trapframe *);
 #ifdef VM86
diff -r 0363e40b7c81 -r 295393d22fd5 sys/arch/m68k/m68k/m68k_syscall.c
--- a/sys/arch/m68k/m68k/m68k_syscall.c Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/arch/m68k/m68k/m68k_syscall.c Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: m68k_syscall.c,v 1.15 2005/07/01 18:01:45 christos Exp $       */
+/*     $NetBSD: m68k_syscall.c,v 1.16 2005/07/10 00:45:52 christos Exp $       */
 
 /*-
  * Portions Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -110,7 +110,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: m68k_syscall.c,v 1.15 2005/07/01 18:01:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: m68k_syscall.c,v 1.16 2005/07/10 00:45:52 christos Exp $");
 
 #include "opt_syscall_debug.h"
 #include "opt_execfmt.h"
@@ -149,7 +149,6 @@
 
 void syscall(register_t, struct frame);
 
-void   syscall_intern(struct proc *);
 #ifdef COMPAT_AOUT_M68K
 void   aoutm68k_syscall_intern(struct proc *);
 #endif
diff -r 0363e40b7c81 -r 295393d22fd5 sys/arch/powerpc/include/proc.h
--- a/sys/arch/powerpc/include/proc.h   Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/arch/powerpc/include/proc.h   Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.h,v 1.4 2003/01/18 06:23:29 thorpej Exp $ */
+/*     $NetBSD: proc.h,v 1.5 2005/07/10 00:45:52 christos Exp $        */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -48,8 +48,4 @@
        void (*md_syscall)(struct trapframe *);
 };
 
-#ifdef _KERNEL
-extern void syscall_intern(struct proc *);
-#endif
-
 #endif /* _POWERPC_PROC_H_ */
diff -r 0363e40b7c81 -r 295393d22fd5 sys/arch/sh5/sh5/syscall.c
--- a/sys/arch/sh5/sh5/syscall.c        Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/arch/sh5/sh5/syscall.c        Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syscall.c,v 1.13 2005/07/01 18:01:45 christos Exp $    */
+/*     $NetBSD: syscall.c,v 1.14 2005/07/10 00:45:52 christos Exp $    */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -130,7 +130,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.13 2005/07/01 18:01:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.14 2005/07/10 00:45:52 christos Exp $");
 
 #include "opt_syscall_debug.h"
 #include "opt_ktrace.h"
@@ -158,7 +158,6 @@
 
 #include <uvm/uvm_extern.h>
 
-void   syscall_intern(struct proc *);
 static void syscall_plain(struct lwp *, struct trapframe *);
 static void syscall_fancy(struct lwp *, struct trapframe *);
 
diff -r 0363e40b7c81 -r 295393d22fd5 sys/compat/freebsd/freebsd_exec.c
--- a/sys/compat/freebsd/freebsd_exec.c Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/compat/freebsd/freebsd_exec.c Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: freebsd_exec.c,v 1.27 2005/03/26 05:12:35 fvdl Exp $   */
+/*     $NetBSD: freebsd_exec.c,v 1.28 2005/07/10 00:45:52 christos Exp $       */
 
 /*
  * Copyright (c) 1993, 1994 Christopher G. Demetriou
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: freebsd_exec.c,v 1.27 2005/03/26 05:12:35 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: freebsd_exec.c,v 1.28 2005/07/10 00:45:52 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_syscall_debug.h"
@@ -51,11 +51,6 @@
 
 extern struct sysent freebsd_sysent[];
 extern const char * const freebsd_syscallnames[];
-#ifdef __HAVE_SYSCALL_INTERN
-void syscall_intern __P((struct proc *));
-#else
-void syscall __P((void));
-#endif
 
 struct uvm_object *emul_freebsd_object;
 
diff -r 0363e40b7c81 -r 295393d22fd5 sys/compat/pecoff/pecoff_emul.c
--- a/sys/compat/pecoff/pecoff_emul.c   Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/compat/pecoff/pecoff_emul.c   Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pecoff_emul.c,v 1.12 2005/06/14 22:35:20 christos Exp $        */
+/*     $NetBSD: pecoff_emul.c,v 1.13 2005/07/10 00:45:52 christos Exp $        */
 
 /*
  * Copyright (c) 2000 Masaru OKI
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.12 2005/06/14 22:35:20 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pecoff_emul.c,v 1.13 2005/07/10 00:45:52 christos Exp $");
 
 /*#define DEBUG_PECOFF*/
 
@@ -70,11 +70,6 @@
 #ifdef SYSCALL_DEBUG
 extern const char * const pecoff_syscallnames[];
 #endif
-#ifdef __HAVE_SYSCALL_INTERN
-void syscall_intern(struct proc *);
-#else
-void syscall(void);
-#endif
 
 #ifdef COMPAT_16
 extern char sigcode[], esigcode[];
diff -r 0363e40b7c81 -r 295393d22fd5 sys/compat/ultrix/ultrix_misc.c
--- a/sys/compat/ultrix/ultrix_misc.c   Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/compat/ultrix/ultrix_misc.c   Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ultrix_misc.c,v 1.99 2005/03/26 05:12:36 fvdl Exp $    */
+/*     $NetBSD: ultrix_misc.c,v 1.100 2005/07/10 00:45:52 christos Exp $       */
 
 /*
  * Copyright (c) 1995, 1997 Jonathan Stone (hereinafter referred to as the author)
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ultrix_misc.c,v 1.99 2005/03/26 05:12:36 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ultrix_misc.c,v 1.100 2005/07/10 00:45:52 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_nfsserver.h"
@@ -153,11 +153,6 @@
 extern struct sysent ultrix_sysent[];
 extern const char * const ultrix_syscallnames[];
 extern char ultrix_sigcode[], ultrix_esigcode[];
-#ifdef __HAVE_SYSCALL_INTERN
-void syscall_intern(struct proc *);
-#else
-void syscall(void);
-#endif
 
 struct uvm_object *emul_ultrix_object;
 
diff -r 0363e40b7c81 -r 295393d22fd5 sys/sys/proc.h
--- a/sys/sys/proc.h    Sun Jul 10 00:18:52 2005 +0000
+++ b/sys/sys/proc.h    Sun Jul 10 00:45:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: proc.h,v 1.201 2005/05/29 21:18:25 christos Exp $      */
+/*     $NetBSD: proc.h,v 1.202 2005/07/10 00:45:52 christos Exp $      */
 
 /*-
  * Copyright (c) 1986, 1989, 1991, 1993
@@ -469,6 +469,12 @@
 void   cpu_lwp_free(struct lwp *, int);
 #endif
 
+#ifdef __HAVE_SYSCALL_INTERN
+void   syscall_intern(struct proc *);
+#else
+void   syscall(void);
+#endif
+
 void   child_return(void *);
 
 int    proc_isunder(struct proc *, struct proc *);



Home | Main Index | Thread Index | Old Index