From a108714c31746110db5440e23a49d2e98c1d8b11 Mon Sep 17 00:00:00 2001 From: Kenneth J Davis Date: Sat, 18 Jun 2011 12:27:28 +0000 Subject: [PATCH] Force floppy diskette parameter table (DPT) pointed to by int 1Eh to use 512 bytes per sector; fixes issue with memdisk 3.x & 4.0 which swaps DPT byte values for bps with sectors per track. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1633 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/initdisk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/initdisk.c b/kernel/initdisk.c index 673d927..49ee27c 100644 --- a/kernel/initdisk.c +++ b/kernel/initdisk.c @@ -1262,6 +1262,8 @@ void ReadAllPartitionTables(void) /* quick adjustment of diskette parameter table */ fmemcpy(int1e_table, *(char FAR * FAR *)MK_FP(0, 0x1e*4), sizeof(int1e_table)); + /* currently only 512 bytes per sector floppies are supported, log2(512/128)=2 */ + int1e_table[3] = 2; /* enforce min. 9 sectors per track */ if (int1e_table[4] < 9) int1e_table[4] = 9;