summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-11-05 02:02:26 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-11-05 02:02:26 +0000
commit5cbd69cd1f6964f55df8d170acdd828720f00e82 (patch)
tree9a9cee765607d1e2e1c127f824d673e192c0d357
parent95b082a638e25176dfd9a795389782ccbbebfc70 (diff)
don't try #21 for a: only
-rw-r--r--sys/arch/i386/stand/libsa/biosdev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c
index 70b1a79f905..130ed3a6d80 100644
--- a/sys/arch/i386/stand/libsa/biosdev.c
+++ b/sys/arch/i386/stand/libsa/biosdev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: biosdev.c,v 1.47 1997/11/01 16:35:19 mickey Exp $ */
+/* $OpenBSD: biosdev.c,v 1.48 1997/11/05 02:02:25 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -123,9 +123,9 @@ bios_getinfo(dev, pdi)
/*
* NOTE: This seems to hang on certain machines. Use function #8
* first, and verify with #21 IFF #8 succeeds first.
- * don't try this for floppies.
+ * don't try this for a:
*/
- if (dev & 0x80) {
+ if (dev) {
__asm __volatile (DOINT(0x13) "; setc %b0"
: "=a" (rv) : "0" (0x1500), "d" (dev) : "%ecx", "cc");
if(!(rv & 0xff00))