Mon Mar 29 13:17:53 2021 UTC ()
Centralize cpu_rootconf().


(rin)
diff -r1.6 -r1.7 src/sys/arch/evbppc/obs405/obs405_autoconf.c
diff -r1.22 -r1.23 src/sys/arch/evbppc/walnut/autoconf.c
diff -r1.15 -r1.16 src/sys/arch/powerpc/ibm4xx/ibm4xx_autoconf.c

cvs diff -r1.6 -r1.7 src/sys/arch/evbppc/obs405/Attic/obs405_autoconf.c (expand / switch to context diff)
--- src/sys/arch/evbppc/obs405/Attic/obs405_autoconf.c 2012/07/29 18:05:42 1.6
+++ src/sys/arch/evbppc/obs405/Attic/obs405_autoconf.c 2021/03/29 13:17:53 1.7
@@ -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>
@@ -45,14 +45,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)

cvs diff -r1.22 -r1.23 src/sys/arch/evbppc/walnut/autoconf.c (expand / switch to context diff)
--- src/sys/arch/evbppc/walnut/autoconf.c 2014/07/30 19:33:56 1.22
+++ src/sys/arch/evbppc/walnut/autoconf.c 2021/03/29 13:17:53 1.23
@@ -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>
@@ -72,17 +72,6 @@
 		panic("configure: plb not configured");
 
 	(void)spl0();
-}
-
-/*
- * Setup root device.
- * Configure swap area.
- */
-void
-cpu_rootconf(void)
-{
-
-	rootconf();
 }
 
 void

cvs diff -r1.15 -r1.16 src/sys/arch/powerpc/ibm4xx/ibm4xx_autoconf.c (expand / switch to context diff)
--- src/sys/arch/powerpc/ibm4xx/ibm4xx_autoconf.c 2011/06/18 06:41:41 1.15
+++ src/sys/arch/powerpc/ibm4xx/ibm4xx_autoconf.c 2021/03/29 13:17:53 1.16
@@ -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>
@@ -46,6 +46,13 @@
 
 #include <powerpc/ibm4xx/cpu.h>
 #include <powerpc/ibm4xx/dev/opbvar.h>
+
+void
+cpu_rootconf(void)
+{
+
+	rootconf();
+}
 
 void
 ibm4xx_device_register(device_t dev, void *aux)