diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-11-07 01:40:36 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-11-07 01:40:36 +0000 |
commit | 60d7d8333a81e0c9f3f73a2d65bc618c6b8812b7 (patch) | |
tree | 21edd5087b4f15477f6c1801ad5c837a467c5258 /sys | |
parent | e1547bce97a57b73b56df46950f6f686db26b93a (diff) |
dk_mountroot
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sun3/sun3/swapgeneric.c | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/sys/arch/sun3/sun3/swapgeneric.c b/sys/arch/sun3/sun3/swapgeneric.c index 7b346ad3f29..c1f373ec184 100644 --- a/sys/arch/sun3/sun3/swapgeneric.c +++ b/sys/arch/sun3/sun3/swapgeneric.c @@ -46,34 +46,11 @@ #include <machine/mon.h> -/* - * This will be called if the config file fails to include: - * option GENERIC - * option NFSCLIENT - * option FFS - */ -static int -no_mountroot() -{ - printf("swapgeneric: configuration error!\n"); - boot(RB_HALT); -} - -#ifdef FFS -extern int ffs_mountroot(); -#else /* FFS */ -#define ffs_mountroot no_mountroot -#endif /* FFS */ - #ifdef NFSCLIENT extern char *nfsbootdevname; /* nfs_boot.c */ -extern int nfs_mountroot(); /* nfs_vfsops.c */ #else /* NFSCLIENT */ -static char *nfsbootdevname; -#define nfs_mountroot no_mountroot -#endif /* NFSCLIENT */ -int (*mountroot)() = no_mountroot; +int (*mountroot) __P((void)) = NULL; dev_t rootdev = NODEV; dev_t dumpdev = NODEV; @@ -350,14 +327,17 @@ swapgeneric() * Choose the root fstype. * XXX - Hard coded for now. */ +#ifdef NFSCLIENT if (rootdev == NODEV) { /* Set boot interface name for nfs_mountroot. */ nfsbootdevname = boot_ifname; ds_tostr(&ds, boot_ifname); mountroot = nfs_mountroot; - } else { + } else +#endif /* NFSCLIENT */ + { /* XXX - Should ask for the root fstype here. -gwr */ - mountroot = ffs_mountroot; + mountroot = dk_mountroot; } /* |