From 1112899a6331a275bb436b43cf4f100323de668e Mon Sep 17 00:00:00 2001 From: Jesse Buhagiar Date: Thu, 29 Aug 2019 14:41:23 +1000 Subject: [PATCH] Kernel: Fixed FDC motor_enable() Motor Enable now selects the correct drive. The ternary operations were backwards. QEMU doesn't care (obviously) but on a real PC, the drive doesn't actually ever get selected... --- Kernel/Devices/FloppyDiskDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Devices/FloppyDiskDevice.cpp b/Kernel/Devices/FloppyDiskDevice.cpp index eb1165d41d..7ac4edffda 100644 --- a/Kernel/Devices/FloppyDiskDevice.cpp +++ b/Kernel/Devices/FloppyDiskDevice.cpp @@ -370,7 +370,7 @@ u8 FloppyDiskDevice::read_msr() const void FloppyDiskDevice::motor_enable(bool slave) const { - u8 val = slave ? 0x1C : 0x2D; + u8 val = slave ? 0x2D : 0x1C; write_dor(val); }