- Call _splnone() explicitely after auto config. was well done to make
sure SOFT_INTs cleared before interrupt processing is started.
This commit is contained in:
parent
725b2cb79a
commit
8286166c86
@ -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 _splraise __P((int));
|
||||
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));
|
||||
|
||||
|
@ -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 @@ extern struct devnametobdevmaj dev_name2blk[];
|
||||
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 @@ configure()
|
||||
#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.
|
||||
|
Loading…
Reference in New Issue
Block a user