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
 static int int13_guess_geometry_fdd ( struct int13_drive *int13,
627
 static int int13_guess_geometry_fdd ( struct int13_drive *int13,
628
 				      unsigned int *heads,
628
 				      unsigned int *heads,
629
 				      unsigned int *sectors ) {
629
 				      unsigned int *sectors ) {
630
-	unsigned int blocks = int13_blksize ( int13 );
630
+	unsigned int blocks = int13_capacity ( int13 );
631
 	const struct int13_fdd_geometry *geometry;
631
 	const struct int13_fdd_geometry *geometry;
632
 	unsigned int cylinders;
632
 	unsigned int cylinders;
633
 	unsigned int i;
633
 	unsigned int i;

Laddar…
Avbryt
Spara