mirror of
https://github.com/TheBozos/PS2Recomp.git
synced 2026-12-01 21:33:20 -10:00
SifRegisterRpc: cfunc, cbuf and qd from t0-t2 (EE EABI), not the stack
Read from the stack, JC2's server queue came out 0, and every IOP -> EE call to its stream server (sid 0x10001, 'chunk done' fno 0x403) was refused: the first in-game scene waited for that chunk forever. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
87144125d5
commit
0f75c68862
1 file changed
+5
-8
@@ -818,14 +818,11 @@ namespace ps2_syscalls
|
||||
uint32_t sid = getRegU32(ctx, 5);
|
||||
uint32_t func = getRegU32(ctx, 6);
|
||||
uint32_t buf = getRegU32(ctx, 7);
|
||||
// stack args: cfunc, cbuf, qd...
|
||||
uint32_t sp = getRegU32(ctx, 29);
|
||||
uint32_t cfunc = 0;
|
||||
uint32_t cbuf = 0;
|
||||
uint32_t qd = 0;
|
||||
readStackU32(rdram, sp, 0x10, cfunc);
|
||||
readStackU32(rdram, sp, 0x14, cbuf);
|
||||
readStackU32(rdram, sp, 0x18, qd);
|
||||
// Arguments 5-7 (cfunc, cbuf, qd) are in t0-t2 (EE EABI), not on the stack: read from the stack, JC2's queue
|
||||
// came out 0 and every IOP -> EE call to its server (stream chunk done, sid 0x10001) was refused.
|
||||
const uint32_t cfunc = getRegU32(ctx, 8);
|
||||
const uint32_t cbuf = getRegU32(ctx, 9);
|
||||
const uint32_t qd = getRegU32(ctx, 10);
|
||||
|
||||
t_SifRpcServerData *sd = reinterpret_cast<t_SifRpcServerData *>(getMemPtr(rdram, sdPtr));
|
||||
if (!sd)
|
||||
|
||||
Reference in new issue
Block a user