Kernel: devfd: Optimisations for reliable operation on 6MHz Z80
authorWill Sowerbutts <will@sowerbutts.com>
Sun, 22 Jan 2017 22:38:33 +0000 (22:38 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Sun, 22 Jan 2017 22:38:33 +0000 (22:38 +0000)
commit70b2d2b86260c1cb2f383c5589160e6a4b8c609b
tree6c62e05027beafa71b025cdf02c373530cc0aa3d
parenta2f95a027f0d4be18faa4135c05e1e8804ac9eee
Kernel: devfd: Optimisations for reliable operation on 6MHz Z80

The driver would previously not work below about 10MHz.

Tested on zeta-v2 (Z80) at 6MHz, 8MHz, 10MHz, 18.432MHz and 20MHz.

Tested on p112 (Z180) at 16MHz.

This change also increases the maximum number of times a floppy
operation will be retried before we fail it. It also no longer panics on
floppy errors.
Kernel/dev/devfd.c
Kernel/dev/devfd_hw.s