1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

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...
This commit is contained in:
Jesse Buhagiar 2019-08-29 14:41:23 +10:00 committed by Andreas Kling
parent 5d8aadaf38
commit 1112899a63

View file

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