summaryrefslogtreecommitdiff
path: root/Kernel/BlkDev/DskFDC.HC
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/BlkDev/DskFDC.HC')
-rw-r--r--Kernel/BlkDev/DskFDC.HC6
1 files changed, 4 insertions, 2 deletions
diff --git a/Kernel/BlkDev/DskFDC.HC b/Kernel/BlkDev/DskFDC.HC
index acf3b0d..43a7c3b 100644
--- a/Kernel/BlkDev/DskFDC.HC
+++ b/Kernel/BlkDev/DskFDC.HC
@@ -209,14 +209,16 @@ Bool FDCInit(CBlkDev *bd)
// If this drv is unit 0, do initialization
if (!bd->unit) {
+ // The controller may still be in reset, so we will do a full reset before
+ // performing the version check
+ FDCReset(bd);
+
// Check if the controller is 82077AA-compatible
FDCSendByte(bd,FDC_VERSION);
ver=FDCReadByte(bd);
if (ver==0x90)
okay=TRUE;
-
- FDCReset(bd);
}
recalibrate: