We have to use _splnone() instead of spl0() to enable interrupts on mips
because spl0() is an alias of _spllower(0) and it doesn't set MIPS_SR_INT_IE. Fixes ews4800mips kernel getting stuck in cpu_idle(9) after cpu_configure(9) since yamt-idlelwp merge. (previous mips_idle() implicitly set MIPS_SR_INT_IE but new cpu_idle(9) for mips no longer does it)
This commit is contained in:
parent
7b1793900f
commit
1681c91ced
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.2 2007/06/29 16:03:04 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
|
||||
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.1 2005/12/29 15:20:08 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.2 2007/06/29 16:03:04 tsutsui Exp $");
|
||||
|
||||
#include "opt_sbd.h"
|
||||
|
||||
|
@ -56,7 +56,7 @@ cpu_configure(void)
|
|||
splhigh();
|
||||
if (config_rootfound("mainbus", NULL) == NULL)
|
||||
panic("no mainbus found");
|
||||
spl0();
|
||||
_splnone();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue