Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Nuke __P().



details:   https://anonhg.NetBSD.org/src/rev/e68125c89f06
branches:  trunk
changeset: 554371:e68125c89f06
user:      junyoung <junyoung%NetBSD.org@localhost>
date:      Mon Oct 27 14:11:46 2003 +0000

description:
Nuke __P().

diffstat:

 sys/arch/i386/i386/apm.c               |  48 +++++++++++-----------
 sys/arch/i386/i386/autoconf.c          |  12 ++--
 sys/arch/i386/i386/compat_13_machdep.c |   6 +-
 sys/arch/i386/i386/compat_16_machdep.c |   6 +-
 sys/arch/i386/i386/cpu.c               |  20 ++++----
 sys/arch/i386/i386/db_disasm.c         |  10 ++--
 sys/arch/i386/i386/db_interface.c      |   8 +-
 sys/arch/i386/i386/db_trace.c          |   6 +-
 sys/arch/i386/i386/freebsd_machdep.c   |   6 +-
 sys/arch/i386/i386/freebsd_syscall.c   |   8 +-
 sys/arch/i386/i386/ibcs2_syscall.c     |   8 +-
 sys/arch/i386/i386/identcpu.c          |  20 ++++----
 sys/arch/i386/i386/ipkdb_glue.c        |  10 ++--
 sys/arch/i386/i386/linux_syscall.c     |   8 +-
 sys/arch/i386/i386/mach_machdep.c      |   6 +-
 sys/arch/i386/i386/mach_syscall.c      |  10 ++--
 sys/arch/i386/i386/machdep.c           |  38 ++++++++--------
 sys/arch/i386/i386/mainbus.c           |  10 ++--
 sys/arch/i386/i386/pmap.c              |  72 ++++++++++++++++-----------------
 sys/arch/i386/i386/process_machdep.c   |   6 +-
 sys/arch/i386/i386/svr4_machdep.c      |  12 ++--
 sys/arch/i386/i386/svr4_syscall.c      |   8 +-
 sys/arch/i386/i386/sys_machdep.c       |  16 +++---
 sys/arch/i386/i386/syscall.c           |  12 ++--
 sys/arch/i386/i386/trap.c              |  10 ++--
 sys/arch/i386/i386/vm86.c              |   8 +-
 sys/arch/i386/i386/vm_machdep.c        |  10 ++--
 27 files changed, 196 insertions(+), 198 deletions(-)

diffs (truncated from 1106 to 300 lines):

diff -r 80c204446725 -r e68125c89f06 sys/arch/i386/i386/apm.c
--- a/sys/arch/i386/i386/apm.c  Mon Oct 27 14:10:54 2003 +0000
+++ b/sys/arch/i386/i386/apm.c  Mon Oct 27 14:11:46 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apm.c,v 1.80 2003/09/13 11:12:06 simonb Exp $ */
+/*     $NetBSD: apm.c,v 1.81 2003/10/27 14:11:46 junyoung Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.80 2003/09/13 11:12:06 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.81 2003/10/27 14:11:46 junyoung Exp $");
 
 #include "apm.h"
 #if NAPM > 1
@@ -146,34 +146,34 @@
 #define        APM_UNLOCK(apmsc)                                               \
        (void) lockmgr(&(apmsc)->sc_lock, LK_RELEASE, NULL)
 
-static void    apmattach __P((struct device *, struct device *, void *));
-static int     apmmatch __P((struct device *, struct cfdata *, void *));
+static void    apmattach(struct device *, struct device *, void *);
+static int     apmmatch(struct device *, struct cfdata *, void *);
 
 #if 0
-static void    apm_devpowmgt_enable __P((int, u_int));
-static void    apm_disconnect __P((void *));
+static void    apm_devpowmgt_enable(int, u_int);
+static void    apm_disconnect(void *);
 #endif
-static int     apm_event_handle __P((struct apm_softc *, struct bioscallregs *));
-static int     apm_get_event __P((struct bioscallregs *));
-static int     apm_get_powstat __P((struct bioscallregs *, u_int));
-static void    apm_get_powstate __P((u_int));
-static int     apm_periodic_check __P((struct apm_softc *));
-static void    apm_create_thread __P((void *));
-static void    apm_thread __P((void *));
-static void    apm_perror __P((const char *, struct bioscallregs *, ...))
+static int     apm_event_handle(struct apm_softc *, struct bioscallregs *);
+static int     apm_get_event(struct bioscallregs *);
+static int     apm_get_powstat(struct bioscallregs *, u_int);
+static void    apm_get_powstate(u_int);
+static int     apm_periodic_check(struct apm_softc *);
+static void    apm_create_thread(void *);
+static void    apm_thread(void *);
+static void    apm_perror(const char *, struct bioscallregs *, ...)
                    __attribute__((__format__(__printf__,1,3)));
 #ifdef APM_POWER_PRINT
-static void    apm_power_print __P((struct apm_softc *, struct bioscallregs *));
+static void    apm_power_print(struct apm_softc *, struct bioscallregs *);
 #endif
-static void    apm_powmgt_enable __P((int));
-static void    apm_powmgt_engage __P((int, u_int));
-static int     apm_record_event __P((struct apm_softc *, u_int));
-static void    apm_get_capabilities __P((struct bioscallregs *));
-static void    apm_set_ver __P((struct apm_softc *));
-static void    apm_standby __P((struct apm_softc *));
-static const char *apm_strerror __P((int));
-static void    apm_suspend __P((struct apm_softc *));
-static void    apm_resume __P((struct apm_softc *, struct bioscallregs *));
+static void    apm_powmgt_enable(int);
+static void    apm_powmgt_engage(int, u_int);
+static int     apm_record_event(struct apm_softc *, u_int);
+static void    apm_get_capabilities(struct bioscallregs *);
+static void    apm_set_ver(struct apm_softc *);
+static void    apm_standby(struct apm_softc *);
+static const char *apm_strerror(int);
+static void    apm_suspend(struct apm_softc *);
+static void    apm_resume(struct apm_softc *, struct bioscallregs *);
 
 CFATTACH_DECL(apm, sizeof(struct apm_softc),
     apmmatch, apmattach, NULL, NULL);
diff -r 80c204446725 -r e68125c89f06 sys/arch/i386/i386/autoconf.c
--- a/sys/arch/i386/i386/autoconf.c     Mon Oct 27 14:10:54 2003 +0000
+++ b/sys/arch/i386/i386/autoconf.c     Mon Oct 27 14:11:46 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.73 2003/10/08 04:25:44 lukem Exp $      */
+/*     $NetBSD: autoconf.c,v 1.74 2003/10/27 14:11:46 junyoung Exp $   */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.73 2003/10/08 04:25:44 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.74 2003/10/27 14:11:46 junyoung Exp $");
 
 #include "opt_compat_oldboot.h"
 #include "opt_multiprocessor.h"
@@ -82,10 +82,10 @@
 #include <machine/i82489var.h>
 #endif
 
-static int match_harddisk __P((struct device *, struct btinfo_bootdisk *));
-static void matchbiosdisks __P((void));
-static void findroot __P((void));
-static int is_valid_disk __P((struct device *));
+static int match_harddisk(struct device *, struct btinfo_bootdisk *);
+static void matchbiosdisks(void);
+static void findroot(void);
+static int is_valid_disk(struct device *);
 
 extern struct disklist *i386_alldisks;
 extern int i386_ndisks;
diff -r 80c204446725 -r e68125c89f06 sys/arch/i386/i386/compat_13_machdep.c
--- a/sys/arch/i386/i386/compat_13_machdep.c    Mon Oct 27 14:10:54 2003 +0000
+++ b/sys/arch/i386/i386/compat_13_machdep.c    Mon Oct 27 14:11:46 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_13_machdep.c,v 1.12 2003/08/20 21:48:35 fvdl Exp $      */
+/*     $NetBSD: compat_13_machdep.c,v 1.13 2003/10/27 14:11:46 junyoung Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_13_machdep.c,v 1.12 2003/08/20 21:48:35 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_13_machdep.c,v 1.13 2003/10/27 14:11:46 junyoung Exp $");
 
 #include "opt_vm86.h"
 
@@ -82,7 +82,7 @@
        tf = l->l_md.md_regs;
 #ifdef VM86
        if (context.sc_eflags & PSL_VM) {
-               void syscall_vm86 __P((struct trapframe *));
+               void syscall_vm86(struct trapframe *);
 
                tf->tf_vm86_gs = context.sc_gs;
                tf->tf_vm86_fs = context.sc_fs;
diff -r 80c204446725 -r e68125c89f06 sys/arch/i386/i386/compat_16_machdep.c
--- a/sys/arch/i386/i386/compat_16_machdep.c    Mon Oct 27 14:10:54 2003 +0000
+++ b/sys/arch/i386/i386/compat_16_machdep.c    Mon Oct 27 14:11:46 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_16_machdep.c,v 1.5 2003/10/08 00:28:41 thorpej Exp $    */
+/*     $NetBSD: compat_16_machdep.c,v 1.6 2003/10/27 14:11:46 junyoung Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.5 2003/10/08 00:28:41 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.6 2003/10/27 14:11:46 junyoung Exp $");
 
 #include "opt_vm86.h"
 #include "opt_compat_netbsd.h"
@@ -100,7 +100,7 @@
        tf = l->l_md.md_regs;
 #ifdef VM86
        if (context.sc_eflags & PSL_VM) {
-               void syscall_vm86 __P((struct trapframe *));
+               void syscall_vm86(struct trapframe *);
 
                tf->tf_vm86_gs = context.sc_gs;
                tf->tf_vm86_fs = context.sc_fs;
diff -r 80c204446725 -r e68125c89f06 sys/arch/i386/i386/cpu.c
--- a/sys/arch/i386/i386/cpu.c  Mon Oct 27 14:10:54 2003 +0000
+++ b/sys/arch/i386/i386/cpu.c  Mon Oct 27 14:11:46 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.15 2003/07/14 22:13:10 lukem Exp $ */
+/* $NetBSD: cpu.c,v 1.16 2003/10/27 14:11:46 junyoung Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.15 2003/07/14 22:13:10 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.16 2003/10/27 14:11:46 junyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -118,16 +118,16 @@
 #include <i386/isa/nvram.h>
 #include <dev/isa/isareg.h>
 
-int     cpu_match __P((struct device *, struct cfdata *, void *));
-void    cpu_attach __P((struct device *, struct device *, void *));
+int     cpu_match(struct device *, struct cfdata *, void *);
+void    cpu_attach(struct device *, struct device *, void *);
 
 struct cpu_softc {
        struct device sc_dev;           /* device tree glue */
        struct cpu_info *sc_info;       /* pointer to CPU info */
 };
 
-int mp_cpu_start __P((struct cpu_info *)); 
-void mp_cpu_start_cleanup __P((struct cpu_info *));
+int mp_cpu_start(struct cpu_info *); 
+void mp_cpu_start_cleanup(struct cpu_info *);
 struct cpu_functions mp_cpu_funcs = { mp_cpu_start, NULL,
                                      mp_cpu_start_cleanup };
 
@@ -163,10 +163,10 @@
 
 u_int32_t cpus_running = 0;
 
-void           cpu_hatch __P((void *));
-static void            cpu_boot_secondary __P((struct cpu_info *ci));
-static void            cpu_start_secondary __P((struct cpu_info *ci));
-static void    cpu_copy_trampoline __P((void));
+void           cpu_hatch(void *);
+static void            cpu_boot_secondary(struct cpu_info *ci);
+static void            cpu_start_secondary(struct cpu_info *ci);
+static void    cpu_copy_trampoline(void);
 
 /*
  * Runs once per boot once multiprocessor goo has been detected and
diff -r 80c204446725 -r e68125c89f06 sys/arch/i386/i386/db_disasm.c
--- a/sys/arch/i386/i386/db_disasm.c    Mon Oct 27 14:10:54 2003 +0000
+++ b/sys/arch/i386/i386/db_disasm.c    Mon Oct 27 14:11:46 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_disasm.c,v 1.28 2002/10/01 12:56:49 fvdl Exp $      */
+/*     $NetBSD: db_disasm.c,v 1.29 2003/10/27 14:11:46 junyoung Exp $  */
 
 /* 
  * Mach Operating System
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.28 2002/10/01 12:56:49 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.29 2003/10/27 14:11:46 junyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -873,9 +873,9 @@
        } while (0)
 
 
-db_addr_t db_read_address __P((db_addr_t, int, int, struct i_addr *));
-void db_print_address __P((char *, int, struct i_addr *));
-db_addr_t db_disasm_esc __P((db_addr_t, int, int, int, char *));
+db_addr_t db_read_address(db_addr_t, int, int, struct i_addr *);
+void db_print_address(char *, int, struct i_addr *);
+db_addr_t db_disasm_esc(db_addr_t, int, int, int, char *);
 
 /*
  * Read address at location and return updated location.
diff -r 80c204446725 -r e68125c89f06 sys/arch/i386/i386/db_interface.c
--- a/sys/arch/i386/i386/db_interface.c Mon Oct 27 14:10:54 2003 +0000
+++ b/sys/arch/i386/i386/db_interface.c Mon Oct 27 14:11:46 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.40 2003/06/23 11:01:17 martin Exp $ */
+/*     $NetBSD: db_interface.c,v 1.41 2003/10/27 14:11:46 junyoung Exp $       */
 
 /*
  * Mach Operating System
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.40 2003/06/23 11:01:17 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.41 2003/10/27 14:11:46 junyoung Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -77,7 +77,7 @@
        { (char *)0, },
 };
 
-void kdbprinttrap __P((int, int));
+void kdbprinttrap(int, int);
 #ifdef MULTIPROCESSOR
 extern void ddb_ipi(int, struct trapframe);
 extern void ddb_ipi_tss(struct i386tss *);
@@ -91,7 +91,7 @@
 
 int ddb_cpu = NOCPU;
 
-typedef void (vector) __P((void));
+typedef void (vector)(void);
 extern vector Xintrddbipi;
 
 void
diff -r 80c204446725 -r e68125c89f06 sys/arch/i386/i386/db_trace.c
--- a/sys/arch/i386/i386/db_trace.c     Mon Oct 27 14:10:54 2003 +0000
+++ b/sys/arch/i386/i386/db_trace.c     Mon Oct 27 14:11:46 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trace.c,v 1.39 2003/05/21 23:12:18 kristerw Exp $   */
+/*     $NetBSD: db_trace.c,v 1.40 2003/10/27 14:11:46 junyoung Exp $   */
 
 /* 
  * Mach Operating System
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.39 2003/05/21 23:12:18 kristerw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.40 2003/10/27 14:11:46 junyoung Exp $");
 
 #include <sys/param.h>



Home | Main Index | Thread Index | Old Index