Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[directfd] Add IODELAY floppy delay emulation to DF driver #2076

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Oct 15, 2024

Allows comparison between DF and BIOS driver track cache code.

Currently, the BIOS driver is booting in 4.5s while DF is taking 6.1s. This is because the DF driver is still track-caching entire tracks, rather than caching from the requested start sector to end of track. Change coming, along with consideration of TLVC track cache changes in Mellvik/TLVC#88.

Also fixes IODELAY calculation for drive 1 in BIOS driver.

It was also noted that setup_DMA() enabled interrupts before reseting the driver interrupt handler to rw_interrupt. This introduced a small race condition that likely never mattered, unless the DMA controller were to signal an interrupt immediately after being programmed (likely for an error).

@ghaerr ghaerr merged commit a52e853 into master Oct 15, 2024
2 checks passed
@ghaerr ghaerr deleted the df branch October 15, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant