瀏覽代碼

[int13] Use correct size when estimating floppy disk geometry

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 年之前
父節點
當前提交
8509dbf86a
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/arch/i386/interface/pcbios/int13.c

+ 1
- 1
src/arch/i386/interface/pcbios/int13.c 查看文件

@@ -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;

Loading…
取消
儲存