Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbppc/obs405 Use genppc_cpu_configure() instead of...
details: https://anonhg.NetBSD.org/src/rev/e47dcbd621b7
branches: trunk
changeset: 953251:e47dcbd621b7
user: rin <rin%NetBSD.org@localhost>
date: Tue Mar 02 07:21:01 2021 +0000
description:
Use genppc_cpu_configure() instead of calling spl0() directly
(and optionally printing out imask).
diffstat:
sys/arch/evbppc/obs405/obs200_autoconf.c | 9 +++------
sys/arch/evbppc/obs405/obs266_autoconf.c | 6 +++---
sys/arch/evbppc/obs405/obs600_autoconf.c | 9 +++------
3 files changed, 9 insertions(+), 15 deletions(-)
diffs (87 lines):
diff -r 61d62212d9fb -r e47dcbd621b7 sys/arch/evbppc/obs405/obs200_autoconf.c
--- a/sys/arch/evbppc/obs405/obs200_autoconf.c Tue Mar 02 07:16:24 2021 +0000
+++ b/sys/arch/evbppc/obs405/obs200_autoconf.c Tue Mar 02 07:21:01 2021 +0000
@@ -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 @@
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)
diff -r 61d62212d9fb -r e47dcbd621b7 sys/arch/evbppc/obs405/obs266_autoconf.c
--- a/sys/arch/evbppc/obs405/obs266_autoconf.c Tue Mar 02 07:16:24 2021 +0000
+++ b/sys/arch/evbppc/obs405/obs266_autoconf.c Tue Mar 02 07:21:01 2021 +0000
@@ -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 @@
if (config_rootfound("plb", NULL) == NULL)
panic("configure: mainbus not configured");
- (void)spl0();
+ genppc_cpu_configure();
}
void
diff -r 61d62212d9fb -r e47dcbd621b7 sys/arch/evbppc/obs405/obs600_autoconf.c
--- a/sys/arch/evbppc/obs405/obs600_autoconf.c Tue Mar 02 07:16:24 2021 +0000
+++ b/sys/arch/evbppc/obs405/obs600_autoconf.c Tue Mar 02 07:21:01 2021 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index