diff options
author | tmm <tmm@FreeBSD.org> | 2001-12-21 21:27:01 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-12-21 21:27:01 +0000 |
commit | 7980fe2ead0da74782df7d5b3ac8f90eaa37cda2 (patch) | |
tree | a1a51b933c7db5f651f4477d0dfd88f22b0ba9f3 /sys | |
parent | 3d926fa72889d9d813dc7ebc753adbb7b9614bba (diff) | |
download | FreeBSD-src-7980fe2ead0da74782df7d5b3ac8f90eaa37cda2.zip FreeBSD-src-7980fe2ead0da74782df7d5b3ac8f90eaa37cda2.tar.gz |
Add partial support for NFS_ROOT for sparc64 (only supported in in
connection with BOOTP_NFSROOT right now).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sparc64/sparc64/autoconf.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/autoconf.c b/sys/sparc64/sparc64/autoconf.c index 730e922..a105183 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) |