Skip to content

fix(runtime): route SifSetReg and SifGetReg syscalls - #240

Open
hedgeg0d wants to merge 1 commit into
ran-j:mainfrom
hedgeg0d:fix/route-sif-setreg-getreg
Open

fix(runtime): route SifSetReg and SifGetReg syscalls#240
hedgeg0d wants to merge 1 commit into
ran-j:mainfrom
hedgeg0d:fix/route-sif-setreg-getreg

Conversation

@hedgeg0d

Copy link
Copy Markdown

The dispatcher never routed syscalls 0x79 and 0x7A, so SifSetReg and SifGetReg calls fell through to the TODO stub and always returned 0. Both implementations already exist in the SIF stubs, they were just never wired up.

Katamari Damacy needs these during boot: it polls SIF register 4 (IOP boot status) through SifGetReg and spins forever when it gets 0 back.

Adds a regression test that writes a SIF register with SifSetReg and reads it back with SifGetReg.

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