aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2001-12-21 21:27:01 +0000
committerThomas Moestl <tmm@FreeBSD.org>2001-12-21 21:27:01 +0000
commit7d1656b9fae0be5e67a6d8733900ff39f3878570 (patch)
treea1a51b933c7db5f651f4477d0dfd88f22b0ba9f3
parent4b4b1c05206e0f87d6e13aed11a41ada58a31b01 (diff)
downloadsrc-7d1656b9fae0be5e67a6d8733900ff39f3878570.tar.gz
src-7d1656b9fae0be5e67a6d8733900ff39f3878570.zip
Add partial support for NFS_ROOT for sparc64 (only supported in in
connection with BOOTP_NFSROOT right now).
Notes
Notes: svn path=/head/; revision=88368
-rw-r--r--sys/sparc64/sparc64/autoconf.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/autoconf.c b/sys/sparc64/sparc64/autoconf.c
index 730e922a9e2e..a105183742db 100644
--- a/sys/sparc64/sparc64/autoconf.c
+++ b/sys/sparc64/sparc64/autoconf.c
@@ -26,7 +26,10 @@
* $FreeBSD$
*/
+#include "opt_bootp.h"
#include "opt_isa.h"
+#include "opt_nfs.h"
+#include "opt_nfsroot.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -41,13 +44,27 @@ extern device_t isa_bus_device;
dev_t dumpdev = NODEV;
dev_t rootdev = NODEV;
+static device_t nexusdev;
static void configure(void *);
SYSINIT(configure, SI_SUB_CONFIGURE, SI_ORDER_ANY, configure, NULL);
+#ifdef NFS_ROOT
+SYSINIT(cpu_rootconf, SI_SUB_ROOT_CONF, SI_ORDER_FIRST, cpu_rootconf, NULL)
-static device_t nexusdev;
+#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
static void
configure(void *v)