summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2007-11-12 23:53:43 +0000
committerbz <bz@FreeBSD.org>2007-11-12 23:53:43 +0000
commitb101115f77b27c548b332ebac1519ca4acd5b0a2 (patch)
treee9cfd8566f24c35603ececa8c1cb35bcb541ce32
parent5c6a60df9fee8641431457782aa6ac627c754a3c (diff)
downloadFreeBSD-src-b101115f77b27c548b332ebac1519ca4acd5b0a2.zip
FreeBSD-src-b101115f77b27c548b332ebac1519ca4acd5b0a2.tar.gz
Though we are currently not interested in the EDD3 flag,
Enhanced Disk Drive Specification Ver 3.0 defines that the version of extension in AH would be 30h. Correct the check for that to be >=30h instead of >3h. MFC after: 2 months
-rw-r--r--sys/boot/i386/libi386/biosdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c
index bd4d9d7..c673e10 100644
--- a/sys/boot/i386/libi386/biosdisk.c
+++ b/sys/boot/i386/libi386/biosdisk.c
@@ -254,7 +254,7 @@ bd_int13probe(struct bdinfo *bd)
((v86.ebx & 0xffff) == 0xaa55) && /* signature */
(v86.ecx & 0x1)) { /* packets mode ok */
bd->bd_flags |= BD_MODEEDD1;
- if((v86.eax & 0xff00) > 0x300)
+ if((v86.eax & 0xff00) >= 0x3000)
bd->bd_flags |= BD_MODEEDD3;
}
return(1);
OpenPOWER on IntegriCloud