]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[int13] Use correct size when estimating floppy disk geometry
authorMichael Brown <mcb30@ipxe.org>
Fri, 14 Sep 2012 14:04:53 +0000 (15:04 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 14 Sep 2012 14:04:53 +0000 (15:04 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/interface/pcbios/int13.c

index 191e741873f17034605e1381011d933881bf14d4..263f861e4f380c2b564362efb32d0baa82070747 100644 (file)
@@ -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;