From: Michael Brown Date: Fri, 14 Sep 2012 14:04:53 +0000 (+0100) Subject: [int13] Use correct size when estimating floppy disk geometry X-Git-Tag: v1.20.1~1644 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8509dbf86acce7aacb3518c3f8b5bcb0cb4809da;p=thirdparty%2Fipxe.git [int13] Use correct size when estimating floppy disk geometry Signed-off-by: Michael Brown --- diff --git a/src/arch/i386/interface/pcbios/int13.c b/src/arch/i386/interface/pcbios/int13.c index 191e74187..263f861e4 100644 --- a/src/arch/i386/interface/pcbios/int13.c +++ b/src/arch/i386/interface/pcbios/int13.c @@ -627,7 +627,7 @@ static const struct int13_fdd_geometry int13_fdd_geometries[] = { static int int13_guess_geometry_fdd ( struct int13_drive *int13, unsigned int *heads, unsigned int *sectors ) { - unsigned int blocks = int13_blksize ( int13 ); + unsigned int blocks = int13_capacity ( int13 ); const struct int13_fdd_geometry *geometry; unsigned int cylinders; unsigned int i;