Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Eliminate commons (including many used ones). Clea...



details:   https://anonhg.NetBSD.org/src/rev/b695b84e0c30
branches:  trunk
changeset: 526919:b695b84e0c30
user:      matt <matt%NetBSD.org@localhost>
date:      Tue May 14 02:03:00 2002 +0000

description:
Eliminate commons (including many used ones).  Clean up variable references.

diffstat:

 sys/arch/luna68k/luna68k/locore.s  |  4 +---
 sys/arch/mac68k/mac68k/fpu.c       |  3 +--
 sys/arch/mvme68k/dev/sbicvar.h     |  4 ++--
 sys/arch/mvme68k/dev/vme_two_68k.c |  4 ++--
 sys/arch/mvme68k/mvme68k/locore.s  |  4 +---
 sys/arch/news68k/news68k/locore.s  |  4 +---
 sys/arch/next68k/conf/GENERIC      |  6 +++---
 sys/arch/next68k/include/cpu.h     |  6 +++---
 sys/arch/x68k/dev/rtclock.c        |  6 ++----
 sys/arch/x68k/dev/rtclock_var.h    |  6 +++++-
 sys/arch/x68k/x68k/iodevice.h      |  4 ++--
 11 files changed, 23 insertions(+), 28 deletions(-)

diffs (212 lines):

diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/luna68k/luna68k/locore.s
--- a/sys/arch/luna68k/luna68k/locore.s Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/luna68k/luna68k/locore.s Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.14 2001/08/25 21:08:02 chs Exp $ */
+/* $NetBSD: locore.s,v 1.15 2002/05/14 02:03:00 matt Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1406,8 +1406,6 @@
        .long   0
 GLOBAL(proc0paddr)
        .long   0
-GLOBAL(boothowto)
-       .long   0
 GLOBAL(bootdev)
        .long   0
 GLOBAL(hwplanemask)
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/mac68k/mac68k/fpu.c
--- a/sys/arch/mac68k/mac68k/fpu.c      Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/mac68k/mac68k/fpu.c      Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu.c,v 1.25 2001/11/20 03:19:42 chs Exp $     */
+/*     $NetBSD: fpu.c,v 1.26 2002/05/14 02:03:01 matt Exp $    */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -54,7 +54,6 @@
 /*
  * FPU type; emulator uses FPU_NONE
  */
-int     fputype;
 
 extern label_t *nofault;
 
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/mvme68k/dev/sbicvar.h
--- a/sys/arch/mvme68k/dev/sbicvar.h    Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/mvme68k/dev/sbicvar.h    Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbicvar.h,v 1.8 2001/04/25 17:53:17 bouyer Exp $       */
+/*     $NetBSD: sbicvar.h,v 1.9 2002/05/14 02:03:01 matt Exp $ */
 
 /*
  * Copyright (c) 1990 The Regents of the University of California.
@@ -87,7 +87,7 @@
     int                     cmds;       /* #commands processed */
     int                     dconns;     /* #disconnects */
     int                     lubusy;     /* What local units/subr. are busy? */
-} tinfo_t;
+};
 
 struct  sbic_softc {
     struct  device          sc_dev;
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/mvme68k/dev/vme_two_68k.c
--- a/sys/arch/mvme68k/dev/vme_two_68k.c        Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/mvme68k/dev/vme_two_68k.c        Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vme_two_68k.c,v 1.2 2002/03/24 17:22:33 scw Exp $      */
+/*     $NetBSD: vme_two_68k.c,v 1.3 2002/05/14 02:03:01 matt Exp $     */
 
 /*-
  * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
 struct cfattach vmetwo_ca = {
        sizeof(struct vmetwo_softc), vmetwo_match, vmetwo_attach
 };
-struct cfdriver vmetwo_cd;
+extern struct cfdriver vmetwo_cd;
 
 
 /* ARGSUSED */
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/mvme68k/mvme68k/locore.s
--- a/sys/arch/mvme68k/mvme68k/locore.s Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/mvme68k/mvme68k/locore.s Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.88 2001/07/27 18:58:23 scw Exp $  */
+/*     $NetBSD: locore.s,v 1.89 2002/05/14 02:03:02 matt Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1794,8 +1794,6 @@
        .long   0
 GLOBAL(bootaddr)
        .long   0
-GLOBAL(boothowto)
-       .long   0
 
 GLOBAL(want_resched)
        .long   0
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/news68k/news68k/locore.s
--- a/sys/arch/news68k/news68k/locore.s Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/news68k/news68k/locore.s Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.24 2001/07/22 13:34:06 wiz Exp $  */
+/*     $NetBSD: locore.s,v 1.25 2002/05/14 02:03:02 matt Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1527,8 +1527,6 @@
        .long   0
 GLOBAL(bootaddr)
        .long   0
-GLOBAL(boothowto)
-       .long   0
 
 GLOBAL(want_resched)
        .long   0
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/next68k/conf/GENERIC
--- a/sys/arch/next68k/conf/GENERIC     Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/next68k/conf/GENERIC     Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.55 2002/04/25 15:06:34 atatat Exp $
+# $NetBSD: GENERIC,v 1.56 2002/05/14 02:03:02 matt Exp $
 #
 # GENERIC machine description file
 # 
@@ -22,7 +22,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "GENERIC-$Revision: 1.55 $"
+#ident                 "GENERIC-$Revision: 1.56 $"
 
 # Needs to be set per system.  i.e change these as you see fit
 maxusers       16
@@ -103,7 +103,7 @@
 
 options        NFSSERVER       # nfs server support
 options        QUOTA           # FFS quotas
-options        SOFTDEP         # FFS soft updates support.
+#options       SOFTDEP         # FFS soft updates support.
 #options       EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
                                # immutable) behave as system flags.
 
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/next68k/include/cpu.h
--- a/sys/arch/next68k/include/cpu.h    Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/next68k/include/cpu.h    Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.18 2001/05/30 12:28:48 mrg Exp $     */
+/*     $NetBSD: cpu.h,v 1.19 2002/05/14 02:03:02 matt Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -133,8 +133,8 @@
 
 #define aston() (astpending++)
 
-int    astpending;     /* need to trap before returning to user mode */
-int    want_resched;   /* resched() was called */
+extern int     astpending;     /* need to trap before returning to user mode */
+extern int     want_resched;   /* resched() was called */
 
 extern volatile char *intiobase;
 extern  volatile char *intiolimit;
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/x68k/dev/rtclock.c
--- a/sys/arch/x68k/dev/rtclock.c       Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/x68k/dev/rtclock.c       Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtclock.c,v 1.10 2001/05/26 21:32:30 minoura Exp $     */
+/*     $NetBSD: rtclock.c,v 1.11 2002/05/14 02:03:03 matt Exp $        */
 
 /*
  * Copyright 1993, 1994 Masaru Oki
@@ -117,11 +117,9 @@
 
 
 /*
- * x68k/clock.c calls thru this vector, if it is set, to read
+ * x68k/clock.c calls thru the get/set tod vector, if it is set, to read
  * the realtime clock.
  */
-time_t (*gettod) __P((void));
-int (*settod) __P((long));
 
 int
 rtclockinit()
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/x68k/dev/rtclock_var.h
--- a/sys/arch/x68k/dev/rtclock_var.h   Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/x68k/dev/rtclock_var.h   Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtclock_var.h,v 1.4 2001/01/15 07:04:41 itohy Exp $    */
+/*     $NetBSD: rtclock_var.h,v 1.5 2002/05/14 02:03:03 matt Exp $     */
 
 /*
  * Copyright 1993, 1994 Masaru Oki
@@ -96,4 +96,8 @@
 #define        range_test0(n, h)       if ((unsigned)(n) > (h)) return(0)
                                /* cast to unsigned in case n is signed */
 
+#ifdef _KERNEL
+extern time_t (*gettod) __P((void));
+extern int (*settod) __P((long));
+#endif
 #endif /* _RTCLOCKVAR_H_ */
diff -r 6b6d776d3099 -r b695b84e0c30 sys/arch/x68k/x68k/iodevice.h
--- a/sys/arch/x68k/x68k/iodevice.h     Tue May 14 01:18:50 2002 +0000
+++ b/sys/arch/x68k/x68k/iodevice.h     Tue May 14 02:03:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iodevice.h,v 1.6 1999/03/16 16:30:23 minoura Exp $     */
+/*     $NetBSD: iodevice.h,v 1.7 2002/05/14 02:03:03 matt Exp $        */
 
 /*
  * Copyright (c) 1993, 1994, 1995 Masaru Oki
@@ -358,7 +358,7 @@
 
 #ifdef _KERNEL
 #ifndef LOCORE
-volatile struct IODEVICE *IODEVbase;
+extern volatile struct IODEVICE *IODEVbase;
 #endif
 
 #define mfp     (IODEVbase->io_mfp)



Home | Main Index | Thread Index | Old Index