diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-03-23 17:10:25 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-03-23 17:10:25 +0000 |
commit | f4bdac6fc5f73a1ab3135e8401016f07fd7e4028 (patch) | |
tree | c5e9678109d6f403d835e5075b58f99fdabce233 /sys/arch/sparc/dev | |
parent | cfa4b709d213a906bf950f27ebf352df7ca1ca0f (diff) |
Kill the sparc-specific mountroot hooks (which are run before the root
filesystem is mounted, unlike the MI mountroot hooks). They were only
used to allow root on floppy in the long dead two-floppies installation
method.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/fd.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c index 1d88fcd7b3a..bfbff8f15fa 100644 --- a/sys/arch/sparc/dev/fd.c +++ b/sys/arch/sparc/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.40 2005/03/12 00:09:01 miod Exp $ */ +/* $OpenBSD: fd.c,v 1.41 2005/03/23 17:10:22 miod Exp $ */ /* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */ /*- @@ -276,7 +276,6 @@ void fdcretry(struct fdc_softc *fdc); void fdfinish(struct fd_softc *fd, struct buf *bp); int fdformat(dev_t, struct fd_formb *, struct proc *); void fd_do_eject(struct fd_softc *); -void fd_mountroot_hook(struct device *); static int fdconf(struct fdc_softc *); #if IPL_FDSOFT == 4 @@ -679,12 +678,6 @@ fdattach(parent, self, aux) if (fa->fa_bootpath) fa->fa_bootpath->dev = &fd->sc_dv; - /* - * Establish a mountroot_hook anyway in case we booted - * with RB_ASKNAME and get selected as the boot device. - */ - mountroot_hook_establish(fd_mountroot_hook, &fd->sc_dv); - /* Make sure the drive motor gets turned off at shutdown time. */ fd->sc_sdhook = shutdownhook_establish(fd_motor_off, fd); @@ -2020,30 +2013,3 @@ fd_do_eject(fd) return; } } - -/* - * The mountroot_hook is called once the root and swap device have been - * established. NULL implies that we may have been the boot device but - * haven't been elected for the root device. - */ - -/* ARGSUSED */ -void -fd_mountroot_hook(dev) - struct device *dev; -{ - int c; - - if (dev) { - fd_do_eject((struct fd_softc *)dev); - - printf("Insert filesystem floppy and press return."); - for (;;) { - c = cngetc(); - if ((c == '\r') || (c == '\n')) { - printf("\n"); - break; - } - } - } -} |