From 099b2ba8328a53786470c287c8a6f3c84fa9042e Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Sat, 8 Mar 2008 23:36:25 +0000 Subject: MFC rev. 1.54 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. --- sys/boot/i386/libi386/biosdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/i386/libi386/biosdisk.c b/sys/boot/i386/libi386/biosdisk.c index bd4d9d7fd0fe..c673e10fef77 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); -- cgit v1.3