Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax - Call _splnone() explicitely after auto confi...



details:   https://anonhg.NetBSD.org/src/rev/e34bba06daaa
branches:  trunk
changeset: 473370:e34bba06daaa
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Mon May 31 07:42:56 1999 +0000

description:
- Call _splnone() explicitely after auto config. was well done to make
sure SOFT_INTs cleared before interrupt processing is started.

diffstat:

 sys/arch/pmax/include/intr.h  |   3 ++-
 sys/arch/pmax/pmax/autoconf.c |  10 ++++------
 2 files changed, 6 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r 57848bfc2057 -r e34bba06daaa sys/arch/pmax/include/intr.h
--- a/sys/arch/pmax/include/intr.h      Mon May 31 07:05:56 1999 +0000
+++ b/sys/arch/pmax/include/intr.h      Mon May 31 07:42:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.6 1999/05/25 04:17:58 nisimura Exp $        */
+/*     $NetBSD: intr.h,v 1.7 1999/05/31 07:42:57 nisimura Exp $        */
 
 /*
  * Copyright (c) 1998 Jonathan Stone.  All rights reserved.
@@ -52,6 +52,7 @@
 extern int _spllower __P((int));
 extern int _splset __P((int));
 extern int _splget __P((void));
+extern void _splnone __P((void));
 extern void _setsoftintr __P((int));
 extern void _clrsoftintr __P((int));
 
diff -r 57848bfc2057 -r e34bba06daaa sys/arch/pmax/pmax/autoconf.c
--- a/sys/arch/pmax/pmax/autoconf.c     Mon May 31 07:05:56 1999 +0000
+++ b/sys/arch/pmax/pmax/autoconf.c     Mon May 31 07:42:56 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.34 1999/05/25 09:32:27 nisimura Exp $   */
+/*     $NetBSD: autoconf.c,v 1.35 1999/05/31 07:42:56 nisimura Exp $   */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.34 1999/05/25 09:32:27 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.35 1999/05/31 07:42:56 nisimura Exp $");
 
 /*
  * Setup the system to run on the current machine.
@@ -102,12 +102,10 @@
 void
 configure()
 {
-       int s;
-
        /*
         * Kick off autoconfiguration
         */
-       s = splhigh();
+       (void)splhigh();
        if (config_rootfound("mainbus", "mainbus") == NULL)
            panic("no mainbus found");
 
@@ -118,7 +116,7 @@
 #ifdef DEBUG
        printf("autconfiguration done, spl back to 0x%x\n", s);
 #endif
-       spl0();
+       _splnone();     /* enable all source forcing SOFT_INTs cleared */
 
        /*
         * Probe SCSI bus using old-style pmax configuration table.



Home | Main Index | Thread Index | Old Index