Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Centralize cpu_rootconf().
details: https://anonhg.NetBSD.org/src/rev/91d563d83fb6
branches: trunk
changeset: 960802:91d563d83fb6
user: rin <rin%NetBSD.org@localhost>
date: Mon Mar 29 13:17:53 2021 +0000
description:
Centralize cpu_rootconf().
diffstat:
sys/arch/evbppc/obs405/obs405_autoconf.c | 12 ++----------
sys/arch/evbppc/walnut/autoconf.c | 15 ++-------------
sys/arch/powerpc/ibm4xx/ibm4xx_autoconf.c | 11 +++++++++--
3 files changed, 13 insertions(+), 25 deletions(-)
diffs (101 lines):
diff -r 1ef1f4a2c962 -r 91d563d83fb6 sys/arch/evbppc/obs405/obs405_autoconf.c
--- a/sys/arch/evbppc/obs405/obs405_autoconf.c Mon Mar 29 13:14:13 2021 +0000
+++ b/sys/arch/evbppc/obs405/obs405_autoconf.c Mon Mar 29 13:17:53 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: obs405_autoconf.c,v 1.6 2012/07/29 18:05:42 mlelstv Exp $ */
+/* $NetBSD: obs405_autoconf.c,v 1.7 2021/03/29 13:17:53 rin Exp $ */
/*
* Copyright 2004 Shigeyuki Fukushima.
@@ -33,7 +33,7 @@
* DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: obs405_autoconf.c,v 1.6 2012/07/29 18:05:42 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: obs405_autoconf.c,v 1.7 2021/03/29 13:17:53 rin Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -46,14 +46,6 @@
#include <powerpc/ibm4xx/cpu.h>
#include <powerpc/ibm4xx/dev/comopbvar.h>
-
-void
-cpu_rootconf(void)
-{
-
- rootconf();
-}
-
void
obs405_device_register(device_t dev, void *aux, int com_freq)
{
diff -r 1ef1f4a2c962 -r 91d563d83fb6 sys/arch/evbppc/walnut/autoconf.c
--- a/sys/arch/evbppc/walnut/autoconf.c Mon Mar 29 13:14:13 2021 +0000
+++ b/sys/arch/evbppc/walnut/autoconf.c Mon Mar 29 13:17:53 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.22 2014/07/30 19:33:56 joerg Exp $ */
+/* $NetBSD: autoconf.c,v 1.23 2021/03/29 13:17:53 rin Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.22 2014/07/30 19:33:56 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.23 2021/03/29 13:17:53 rin Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -74,17 +74,6 @@
(void)spl0();
}
-/*
- * Setup root device.
- * Configure swap area.
- */
-void
-cpu_rootconf(void)
-{
-
- rootconf();
-}
-
void
device_register(device_t dev, void *aux)
{
diff -r 1ef1f4a2c962 -r 91d563d83fb6 sys/arch/powerpc/ibm4xx/ibm4xx_autoconf.c
--- a/sys/arch/powerpc/ibm4xx/ibm4xx_autoconf.c Mon Mar 29 13:14:13 2021 +0000
+++ b/sys/arch/powerpc/ibm4xx/ibm4xx_autoconf.c Mon Mar 29 13:17:53 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ibm4xx_autoconf.c,v 1.15 2011/06/18 06:41:41 matt Exp $ */
+/* $NetBSD: ibm4xx_autoconf.c,v 1.16 2021/03/29 13:17:53 rin Exp $ */
/* Original Tag: ibm4xxgpx_autoconf.c,v 1.2 2004/10/23 17:12:22 thorpej Exp $ */
/*
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibm4xx_autoconf.c,v 1.15 2011/06/18 06:41:41 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibm4xx_autoconf.c,v 1.16 2021/03/29 13:17:53 rin Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -48,6 +48,13 @@
#include <powerpc/ibm4xx/dev/opbvar.h>
void
+cpu_rootconf(void)
+{
+
+ rootconf();
+}
+
+void
ibm4xx_device_register(device_t dev, void *aux)
{
device_t parent = device_parent(dev);
Home |
Main Index |
Thread Index |
Old Index