From 6b6bcd23b53f9d2958bacbcaccc4074c6bb6bdd4 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Mon, 26 Dec 2016 00:57:51 +0000 Subject: [PATCH] Fix access to /fd2 (bugs #98, #103) git-svn-id: svn://kolibrios.org@6814 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/flp_drv.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/blkdev/flp_drv.inc b/kernel/trunk/blkdev/flp_drv.inc index 11fc62a078..5c73ece13b 100644 --- a/kernel/trunk/blkdev/flp_drv.inc +++ b/kernel/trunk/blkdev/flp_drv.inc @@ -368,7 +368,8 @@ RecalibrateFDD: ; Подать команду "Рекалибровка" mov AL, 07h call FDCDataOutput - mov AL, 00h + mov AL, [flp_number] + dec AL call FDCDataOutput ; Ожидать завершения операции call WaitFDCInterrupt @@ -484,6 +485,8 @@ ReadSector: call FDCDataOutput mov AL, [FDD_Head] shl AL, 2 + or AL, [flp_number] + dec AL call FDCDataOutput mov AL, [FDD_Track] call FDCDataOutput @@ -586,6 +589,8 @@ WriteSector: call FDCDataOutput mov AL, [FDD_Head] shl AL, 2 + or AL, [flp_number] + dec AL call FDCDataOutput mov AL, [FDD_Track] call FDCDataOutput