From fc89eb3a4cfc238d804bdbf7ffce2cf2af0c4fda Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Mon, 12 Nov 2007 23:53:43 +0000 Subject: [PATCH] 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 --- 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 bd4d9d7fd0f..c673e10fef7 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);