summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/powerpc/powerpc/autoconf.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/powerpc/powerpc/autoconf.c b/sys/powerpc/powerpc/autoconf.c
index d010ebd..a5f86c7 100644
--- a/sys/powerpc/powerpc/autoconf.c
+++ b/sys/powerpc/powerpc/autoconf.c
@@ -60,6 +60,23 @@ static const char rcsid[] =
static void configure(void *);
SYSINIT(configure, SI_SUB_CONFIGURE, SI_ORDER_THIRD, configure, NULL)
+#ifdef NFS_ROOT
+SYSINIT(cpu_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, cpu_rootconf, NULL)
+
+#ifndef BOOTP_NFSROOT
+#error "NFS_ROOT support not implemented for the non-BOOTP_NFSROOT case"
+#endif
+
+extern void bootpc_init(void);
+
+void
+cpu_rootconf()
+{
+
+ bootpc_init();
+ rootdevnames[0] = "nfs:";
+}
+#endif
/*
* Determine i/o configuration for a machine.
OpenPOWER on IntegriCloud