Bläddra i källkod

[int13] Use correct size when estimating floppy disk geometry

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 år sedan
förälder
incheckning
8509dbf86a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      src/arch/i386/interface/pcbios/int13.c

+ 1
- 1
src/arch/i386/interface/pcbios/int13.c Visa fil

@@ -627,7 +627,7 @@ static const struct int13_fdd_geometry int13_fdd_geometries[] = {
627 627
 static int int13_guess_geometry_fdd ( struct int13_drive *int13,
628 628
 				      unsigned int *heads,
629 629
 				      unsigned int *sectors ) {
630
-	unsigned int blocks = int13_blksize ( int13 );
630
+	unsigned int blocks = int13_capacity ( int13 );
631 631
 	const struct int13_fdd_geometry *geometry;
632 632
 	unsigned int cylinders;
633 633
 	unsigned int i;

Laddar…
Avbryt
Spara