Use genppc_cpu_configure() instead of calling spl0() directly
(and optionally printing out imask).
This commit is contained in:
parent
60f64147e4
commit
1f194d9ab0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: obs200_autoconf.c,v 1.7 2011/12/12 11:23:57 kiyohara Exp $ */
|
||||
/* $NetBSD: obs200_autoconf.c,v 1.8 2021/03/02 07:21:01 rin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2004 Shigeyuki Fukushima.
|
||||
|
@ -33,7 +33,7 @@
|
|||
* DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs200_autoconf.c,v 1.7 2011/12/12 11:23:57 kiyohara Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs200_autoconf.c,v 1.8 2021/03/02 07:21:01 rin Exp $");
|
||||
|
||||
#include <sys/systm.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -63,10 +63,7 @@ cpu_configure(void)
|
|||
if (config_rootfound("plb", NULL) == NULL)
|
||||
panic("configure: mainbus not configured");
|
||||
|
||||
printf("biomask %x netmask %x ttymask %x\n",
|
||||
imask[IPL_BIO], imask[IPL_NET], imask[IPL_TTY]);
|
||||
|
||||
(void)spl0();
|
||||
genppc_cpu_configure();
|
||||
}
|
||||
|
||||
void device_register(device_t dev, void *aux)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: obs266_autoconf.c,v 1.7 2011/12/12 11:23:57 kiyohara Exp $ */
|
||||
/* $NetBSD: obs266_autoconf.c,v 1.8 2021/03/02 07:21:01 rin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2004 Shigeyuki Fukushima.
|
||||
|
@ -33,7 +33,7 @@
|
|||
* DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs266_autoconf.c,v 1.7 2011/12/12 11:23:57 kiyohara Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs266_autoconf.c,v 1.8 2021/03/02 07:21:01 rin Exp $");
|
||||
|
||||
#include <sys/systm.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -62,7 +62,7 @@ cpu_configure(void)
|
|||
if (config_rootfound("plb", NULL) == NULL)
|
||||
panic("configure: mainbus not configured");
|
||||
|
||||
(void)spl0();
|
||||
genppc_cpu_configure();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: obs600_autoconf.c,v 1.8 2019/02/18 06:27:10 msaitoh Exp $ */
|
||||
/* $NetBSD: obs600_autoconf.c,v 1.9 2021/03/02 07:21:01 rin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2004 Shigeyuki Fukushima.
|
||||
|
@ -33,7 +33,7 @@
|
|||
* DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs600_autoconf.c,v 1.8 2019/02/18 06:27:10 msaitoh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: obs600_autoconf.c,v 1.9 2021/03/02 07:21:01 rin Exp $");
|
||||
|
||||
#include "dwctwo.h"
|
||||
|
||||
|
@ -111,10 +111,7 @@ cpu_configure(void)
|
|||
|
||||
pic_finish_setup();
|
||||
|
||||
printf("biomask %x netmask %x ttymask %x\n",
|
||||
imask[IPL_BIO], imask[IPL_NET], imask[IPL_TTY]);
|
||||
|
||||
(void)spl0();
|
||||
genppc_cpu_configure();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue