Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Don't call configure() from cpu_startup().



details:   https://anonhg.NetBSD.org/src/rev/d8e12a50d288
branches:  trunk
changeset: 467965:d8e12a50d288
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Apr 01 00:17:45 1999 +0000

description:
Don't call configure() from cpu_startup().

diffstat:

 sys/arch/alpha/alpha/machdep.c       |   9 ++-------
 sys/arch/amiga/amiga/autoconf.c      |   5 ++++-
 sys/arch/amiga/amiga/machdep.c       |   9 +--------
 sys/arch/arm32/arm32/machdep.c       |   7 +------
 sys/arch/atari/atari/machdep.c       |   7 +------
 sys/arch/bebox/bebox/machdep.c       |   7 +------
 sys/arch/hp300/hp300/machdep.c       |   7 +------
 sys/arch/i386/i386/machdep.c         |   7 ++-----
 sys/arch/mac68k/mac68k/machdep.c     |   7 ++-----
 sys/arch/macppc/macppc/autoconf.c    |  12 +++++++++++-
 sys/arch/macppc/macppc/machdep.c     |  17 +----------------
 sys/arch/mvme68k/mvme68k/machdep.c   |   7 +------
 sys/arch/newsmips/newsmips/machdep.c |   9 ++-------
 sys/arch/next68k/next68k/machdep.c   |   7 +------
 sys/arch/ofppc/ofppc/machdep.c       |   7 +------
 sys/arch/pc532/pc532/machdep.c       |   7 +------
 sys/arch/pica/pica/machdep.c         |   7 +------
 sys/arch/pmax/pmax/machdep.c         |   9 ++-------
 sys/arch/sparc/sparc/machdep.c       |   7 +------
 sys/arch/sparc64/sparc64/machdep.c   |   7 +------
 sys/arch/sun3/sun3/machdep.c         |   7 +------
 sys/arch/sun3/sun3x/machdep.c        |   7 +------
 sys/arch/vax/vax/machdep.c           |   7 +------
 sys/arch/x68k/x68k/machdep.c         |   7 +------
 24 files changed, 42 insertions(+), 147 deletions(-)

diffs (truncated from 548 to 300 lines):

diff -r 6199679dec59 -r d8e12a50d288 sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c    Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/alpha/alpha/machdep.c    Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.165 1999/03/26 23:41:25 mycroft Exp $ */
+/* $NetBSD: machdep.c,v 1.166 1999/04/01 00:17:45 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.165 1999/03/26 23:41:25 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.166 1999/04/01 00:17:45 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1122,11 +1122,6 @@
         * CPUs.
         */
        hwrpb_primary_init();
-
-       /*
-        * Configure the system.
-        */
-       configure();
 }
 
 /*
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/amiga/amiga/autoconf.c
--- a/sys/arch/amiga/amiga/autoconf.c   Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/amiga/amiga/autoconf.c   Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.62 1999/03/19 21:40:24 is Exp $ */
+/*     $NetBSD: autoconf.c,v 1.63 1999/04/01 00:17:46 thorpej Exp $    */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -111,6 +111,9 @@
        splx(s);
 #endif
        cold = 0;
+#ifdef DEBUG_KERNEL_START
+       printf("survived configure...\n");
+#endif
 }
 
 void
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c    Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/amiga/amiga/machdep.c    Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.132 1999/03/26 23:41:27 mycroft Exp $    */
+/*     $NetBSD: machdep.c,v 1.133 1999/04/01 00:17:46 thorpej Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -485,13 +485,6 @@
 #ifdef DEBUG_KERNEL_START
        printf("survived bufinit...\n");
 #endif
-       /*
-        * Configure the system.
-        */
-       configure();
-#ifdef DEBUG_KERNEL_START
-       printf("survived configure...\n");
-#endif
 }
 
 /*
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/arm32/arm32/machdep.c
--- a/sys/arch/arm32/arm32/machdep.c    Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/arm32/arm32/machdep.c    Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.64 1999/03/26 22:00:25 mycroft Exp $     */
+/*     $NetBSD: machdep.c,v 1.65 1999/04/01 00:17:46 thorpej Exp $     */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -506,11 +506,6 @@
            (vm_offset_t)(kernel_pmap)->pm_pdir);
            
        proc0.p_md.md_regs = (struct trapframe *)curpcb->pcb_sp - 1;
-
-       /*
-        * Configure the hardware
-        */
-       configure();
 }
 
 
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/atari/atari/machdep.c
--- a/sys/arch/atari/atari/machdep.c    Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/atari/atari/machdep.c    Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.78 1999/03/26 23:41:28 mycroft Exp $     */
+/*     $NetBSD: machdep.c,v 1.79 1999/04/01 00:17:46 thorpej Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -418,11 +418,6 @@
         * Set up buffers, so they can be used to read disk labels.
         */
        bufinit();
-
-       /*
-        * Configure the system.
-        */
-       configure();
 }
 
 /*
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/bebox/bebox/machdep.c
--- a/sys/arch/bebox/bebox/machdep.c    Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/bebox/bebox/machdep.c    Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.32 1999/03/26 23:41:28 mycroft Exp $     */
+/*     $NetBSD: machdep.c,v 1.33 1999/04/01 00:17:46 thorpej Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -573,11 +573,6 @@
                asm volatile ("mfmsr %0; ori %0,%0,%1; mtmsr %0"
                              : "=r"(msr) : "K"(PSL_EE));
        }
-
-       /*
-        * Configure devices.
-        */
-       configure();
 }
 
 /*
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c    Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/hp300/hp300/machdep.c    Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $    */
+/*     $NetBSD: machdep.c,v 1.122 1999/04/01 00:17:47 thorpej Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -428,11 +428,6 @@
         * Set up buffers, so they can be used to read disk labels.
         */
        bufinit();
-
-       /*
-        * Configure the system.
-        */
-       configure();
 }
 
 /*
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/i386/i386/machdep.c      Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.347 1999/03/30 08:21:54 bouyer Exp $     */
+/*     $NetBSD: machdep.c,v 1.348 1999/04/01 00:17:47 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -531,11 +531,8 @@
 #endif
 #endif
 
-       /*
-        * Configure the system.
-        */
+       /* Safe for i/o port allocation to use malloc now. */
        ioport_malloc_safe = 1;
-       configure();
 
        /*
         * Set up proc0's TSS and LDT.
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/mac68k/mac68k/machdep.c
--- a/sys/arch/mac68k/mac68k/machdep.c  Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/mac68k/mac68k/machdep.c  Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.226 1999/03/27 05:01:28 briggs Exp $     */
+/*     $NetBSD: machdep.c,v 1.227 1999/04/01 00:17:47 thorpej Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -570,11 +570,8 @@
         */
        bufinit();
 
-       /*
-        * Configure the system.
-        */
+       /* Safe for extent allocation to use malloc now. */
        iomem_malloc_safe = 1;
-       configure();
 }
 
 void
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/macppc/macppc/autoconf.c
--- a/sys/arch/macppc/macppc/autoconf.c Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/macppc/macppc/autoconf.c Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.9 1999/02/02 16:37:51 tsubai Exp $      */
+/*     $NetBSD: autoconf.c,v 1.10 1999/04/01 00:17:47 thorpej Exp $    */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -91,6 +91,16 @@
 
        (void)spl0();
        cold = 0;
+
+       /*
+        * Now allow hardware interrupts.
+        */
+       {
+               int msr;
+
+               asm volatile ("mfmsr %0; ori %0,%0,%1; mtmsr %0"
+                             : "=r"(msr) : "K"((u_short)(PSL_EE|PSL_RI)));
+       }
 }
 
 /*
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c  Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/macppc/macppc/machdep.c  Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.37 1999/03/26 23:41:31 mycroft Exp $     */
+/*     $NetBSD: machdep.c,v 1.38 1999/04/01 00:17:47 thorpej Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -570,21 +570,6 @@
         * Set up the buffers.
         */
        bufinit();
-
-       /*
-        * Configure devices.
-        */
-       configure();
-
-       /*
-        * Now allow hardware interrupts.
-        */
-       {
-               int msr;
-
-               asm volatile ("mfmsr %0; ori %0,%0,%1; mtmsr %0"
-                             : "=r"(msr) : "K"((u_short)(PSL_EE|PSL_RI)));
-       }
 }
 
 /*
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/mvme68k/mvme68k/machdep.c
--- a/sys/arch/mvme68k/mvme68k/machdep.c        Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/mvme68k/mvme68k/machdep.c        Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.51 1999/03/26 23:41:31 mycroft Exp $     */
+/*     $NetBSD: machdep.c,v 1.52 1999/04/01 00:17:48 thorpej Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -525,11 +525,6 @@
         * Set up buffers, so they can be used to read disk labels.
         */
        bufinit();
-
-       /*
-        * Configure the system.
-        */
-       configure();
 }
 
 /*
diff -r 6199679dec59 -r d8e12a50d288 sys/arch/newsmips/newsmips/machdep.c
--- a/sys/arch/newsmips/newsmips/machdep.c      Wed Mar 31 23:25:46 1999 +0000
+++ b/sys/arch/newsmips/newsmips/machdep.c      Thu Apr 01 00:17:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.23 1999/03/26 23:41:32 mycroft Exp $     */
+/*     $NetBSD: machdep.c,v 1.24 1999/04/01 00:17:48 thorpej Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.23 1999/03/26 23:41:32 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.24 1999/04/01 00:17:48 thorpej Exp $");
 
 /* from: Utah Hdr: machdep.c 1.63 91/04/24 */
 
@@ -424,11 +424,6 @@
         * Set up buffers, so they can be used to read disk labels.
         */
        bufinit();



Home | Main Index | Thread Index | Old Index