summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-04-18 06:12:24 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-04-18 06:12:24 +0000
commite8c39fb5a59894b98b2b771f102ad5fb4be0ade0 (patch)
tree696415b8412444380ff7966370ceacfdc9710d2f /sys
parent90b8b49973039a83038cba4a56a45e0a11b4e96c (diff)
alpha is like amiga in the sense it doesn't support bad block lists.
This ought to be done differently, but for now this will suffice.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/wd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/isa/wd.c b/sys/dev/isa/wd.c
index 3858438158f..df36b3f7983 100644
--- a/sys/dev/isa/wd.c
+++ b/sys/dev/isa/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.24 1997/01/04 08:50:24 deraadt Exp $ */
+/* $OpenBSD: wd.c,v 1.25 1997/04/18 06:12:23 niklas Exp $ */
/* $NetBSD: wd.c,v 1.150 1996/05/12 23:54:03 mycroft Exp $ */
/*
@@ -104,7 +104,7 @@ bdev_decl(wd);
void wdfinish __P((struct wd_softc *, struct buf *));
int wdsetctlr __P((struct wd_link *));
-#ifndef amiga
+#if !defined(amiga) && !defined(alpha)
static void bad144intern __P((struct wd_softc *));
#endif
int wdlock __P((struct wd_link *));
@@ -572,7 +572,7 @@ wdgetdisklabel(dev, wd)
if (d_link->sc_state > GEOMETRY)
d_link->sc_state = GEOMETRY;
-#ifndef amiga
+#if !defined(amiga) && !defined(alpha)
if ((lp->d_flags & D_BADSECT) != 0)
bad144intern(wd);
#endif
@@ -623,7 +623,7 @@ wdioctl(dev, xfer, addr, flag, p)
return EIO;
switch (xfer) {
-#ifndef amiga
+#if !defined(amiga) && !defined(alpha)
case DIOCSBAD:
if ((flag & FWRITE) == 0)
return EBADF;
@@ -908,7 +908,7 @@ wddump(dev, blkno, va, size)
}
#endif /* __BDEVSW_DUMP_NEW_TYPE */
-#ifndef amiga
+#if !defined(amiga) && !defined(alpha)
/*
* Internalize the bad sector table.
*/