Skip to content

Cdfs redir fixes#40

Open
QuzarDC wants to merge 2 commits into
masterfrom
cdfs_redir_fixes
Open

Cdfs redir fixes#40
QuzarDC wants to merge 2 commits into
masterfrom
cdfs_redir_fixes

Conversation

@QuzarDC

@QuzarDC QuzarDC commented Jul 11, 2026

Copy link
Copy Markdown
Member

CDFS redirection hasn't worked right since a lot of the updates to the core KOS driver in early 2024, and was entirely broken since the switch to DMA transfers as default in KallistiOS/KallistiOS#659

This generally matches the fixes as implemented here: andressbarajas/kos-tool@71856a1 and following the discord discussion here: https://discord.com/channels/488332893324836864/488332893324836866/1523760146772398321

QuzarDC added 2 commits July 11, 2026 14:29
gdGdcReqCmd was returning 0 for success and -1 for failure. This
kind of worked with old KOS and a patch had been kept in for it to
continue to somewhat work, but it was just wrong. The actual BIOS
returns a 0 on failure (indicating 'retry') and a non-zero request ID
on success.

Implement a simple form of this where we just return an arbitrary incremented
ID value for each request. We don't track this ID for replying to status or
aborting commands like the BIOS does though.
It is treated identically to the standard PIO transfer.
This should fix cdfs support which has been broken since KOS
switched to DMA as the default transfer method in KallistiOS/KallistiOS#659
@QuzarDC QuzarDC added the bug Something isn't working label Jul 11, 2026
@QuzarDC QuzarDC linked an issue Jul 11, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GD ROM DMA support

1 participant