Browse Source

[int13] Use correct size when estimating floppy disk geometry

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
8509dbf86a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/arch/i386/interface/pcbios/int13.c

+ 1
- 1
src/arch/i386/interface/pcbios/int13.c View File

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;

Loading…
Cancel
Save