From 7d1656b9fae0be5e67a6d8733900ff39f3878570 Mon Sep 17 00:00:00 2001 From: Thomas Moestl Date: Fri, 21 Dec 2001 21:27:01 +0000 Subject: Add partial support for NFS_ROOT for sparc64 (only supported in in connection with BOOTP_NFSROOT right now). --- sys/sparc64/sparc64/autoconf.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 #include @@ -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) -- cgit v1.2.3