mirror of
https://github.com/86Box/86Box.git
synced 2026-02-24 20:35:32 -07:00
Winbond W837x7: Fix IDE handler, fixes #6037. [skip ci]
This commit is contained in:
@@ -233,8 +233,8 @@ w837x7_ide_handler(w837x7_t *dev)
|
||||
|
||||
ide_handlers(ide_id, 0);
|
||||
|
||||
ide_set_base_addr(ide_id, 0, (dev->regs[0x00] & 0x40) ? 0x0170 : 0x01f0);
|
||||
ide_set_base_addr(ide_id, 1, (dev->regs[0x00] & 0x40) ? 0x0376 : 0x03f6);
|
||||
ide_set_base_addr(ide_id, 0, (dev->regs[0x00] & 0x40) ? 0x01f0 : 0x0170);
|
||||
ide_set_base_addr(ide_id, 1, (dev->regs[0x00] & 0x40) ? 0x03f6 : 0x0376);
|
||||
|
||||
if (!(dev->regs[0x00] & 0x80))
|
||||
ide_handlers(ide_id, 1);
|
||||
|
||||
Reference in New Issue
Block a user