mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 18:12:36 +03:00
[int13] Use correct size when estimating floppy disk geometry
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -627,7 +627,7 @@ static const struct int13_fdd_geometry int13_fdd_geometries[] = {
|
|||||||
static int int13_guess_geometry_fdd ( struct int13_drive *int13,
|
static int int13_guess_geometry_fdd ( struct int13_drive *int13,
|
||||||
unsigned int *heads,
|
unsigned int *heads,
|
||||||
unsigned int *sectors ) {
|
unsigned int *sectors ) {
|
||||||
unsigned int blocks = int13_blksize ( int13 );
|
unsigned int blocks = int13_capacity ( int13 );
|
||||||
const struct int13_fdd_geometry *geometry;
|
const struct int13_fdd_geometry *geometry;
|
||||||
unsigned int cylinders;
|
unsigned int cylinders;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|||||||
Reference in New Issue
Block a user