fix(libs): return what the firmware returns from 29 more calls it does not implement #9173
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9173"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-21T14:16:56Z.
What
These 29 exports were
NotImplementedstubs. In the firmware modules (system/common/lib/<library>.sprx, firmware 13.60, read from disassembly, not measured on a console), each is a single constant return that reads no arguments and makes no IPC call or syscall, so the exports now return the same value. This follows #8303, #8305 and #8307. The names are removed from the pending-declaration lists in each library's debt file.sceCompositorCreateIndirectRenderTargetmeXSAmyPBUE0x6290mov eax, 0x80d40006; ret0x80d40006;sceCompositorDeleteIndirectRenderTargetwCqghwW7vQw0x62a0mov eax, 0x80d40006; ret0x80d40006;sceCompositorSetIndirectCanvasCommand-zpfGY1n49E0x1870xor eax, eax; retsceCompositorSetIndirectCompositionCommandM6wp6+JUSRI0x1850xor eax, eax; retsceCompositorSetIndirectRenderTargetConfigCommandkZ7Xre07w700x1860xor eax, eax; retsceFsErriCtliLxIuu5Xs2A0xf5f0mov eax, 0x8002002d; ret0x8002002d;sceFsErriGetState-1whCDzGK1E0x181c0mov eax, 0x8002002d; ret0x8002002d;sceHttpCacheDebugSetUrlFME0+DPciaU0x3a5e0xor eax, eax; retscePlayReadyMemGetStatsiktpef6dl3k0x1db0mov eax, 0x80004001; ret0x80004001;sceSdmaInitializeXc+bwbBPK000x26b0xor eax, eax; retsceSdmaFinalizemNFbFFiI-7A0x2960xor eax, eax; retsceSdmaQueryWorkingBufferSize1FH-82oV3PY0xd0mov eax, 0x8000; ret0x8000;sceSdmaFlushAllWithEventuHobIZSa1dI0x2ab0mov eax, 0x809900c9; ret0x809900c9;sceSdmaWaitForEventrzfOSPn1w7k0x2ac0mov eax, 0x809900c9; ret0x809900c9;CRYPTO_uninitAsymmetricKeycW7VCIMCh9A0x38d0xor eax, eax; retVLONG_freeVlongQueuewcVuyTUr5ys0x38e0xor eax, eax; retsceVisionManagerOpenwzr6GTOo9Dw0x162b0mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerCloseP9+90HStC440x162c0mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerRequestFindUserF8aomqtpD980x16600mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerRequestFindUserInRegioniBbwD8vxSEk0x16620mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerRequestFindUserWithoutIdentifyCZgPsIdPqSk0x165c0mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerRequestRegisterUserInRegion-RJmkkuBhaY0x165e0mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerGetResultOfFindUserNuhv71YjC+g0x16610mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerGetResultOfFindUserInRegionGop3lku7E+Q0x16630mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerGetResultOfFindUserWithoutIdentifyES+vLK-z0+U0x165d0mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerGetResultOfRegisterUserInRegionGYamKe-3LbY0x165f0mov eax, 0x80e70004; ret0x80e70004;sceVisionManagerLoadSettingsl9zev-ybPNs0x178a0xor eax, eax; retsceDebugGetProcessEventCntlFlagZi+rAm6czUg0x4af0mov eax, 1; retsceDebugSetProcessEventCntlFlag--I4Ml0ADxQ0x4b00mov eax, 1; retLeft out:
sceCompositorGetDummyAddressandsceCompositorGetDummySize: the first returns a fixed address in the console's address space.sceSaveDataDebugGetThreadId,sceSaveDataGetClientThreadPriority,sceSaveDataGetSavePoint): #7780 rewrites that file.Tested
Linux (CachyOS, GCC), merged with current
main: the eight libraries build. The newguest_firmware_constant_returnstest (core/libs/tests/GuestFirmwareConstantReturns.cpp) calls all 29 exports and checks each exact return; it passes, as do the 10 existing tests matching these libraries' names.check_conventionspasses.pr_overlapcould not compare #6039, #8541, #8951 and #9137; I checked their hunks by hand, and none touches these functions or the debt lines edited here. No title was run.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T08:27:11Z.
Review: DISMISSED
Review
The implementations are small and consistent with the stated firmware behavior. I did not find a source-level defect in the constant returns. I’m requesting changes because the submitted test counts do not exercise these new exports, and the firmware evidence is not yet specific enough to verify all 29 values.
Direct regression coverage
I searched
core/libs/testsfor the 29 export names in this change and found no direct references. The reported 24 library tests passing therefore do not demonstrate that these functions now return the claimed values.Please add focused assertions that call each export and check its return constant (grouping them by library is fine). This will also ensure the changed definitions are linked and callable. Please rerun those tests after updating the branch.
Firmware evidence
The description identifies firmware 12.00 and says these bodies were read from disassembly, but the table only provides the inferred instruction shape and result. Please add concise verification context for each group (module and function offsets or an attached disassembly excerpt) so reviewers can check the 29 constant-return claims. The debt notes should continue to say these behaviors have not been measured on console.
Base and overlap
The head is 104 commits behind current
main; the three-way merge check is clean, but CONTRIBUTING asks branches to stay up to date. Please rebase/update before merge and rerun the focused library tests.The overlap report lists #6039 in
docs/dev/debt/libSceSsl.md. I checked its hunk: it edits a separate entry, so I found no dependency or merge-order issue there. The other overlap PRs you checked are likewise described as separate hunks.Checks
git diff --checkagainst currentmain: passed.The firmware-derived return values are a reasonable implementation direction; direct tests and reviewable source evidence are still needed before approval.
Imported from boykopovar/AnyPS5. Originally posted by hypermoist on 2026-10-22T08:50:50Z.
@MarcZX10 thanks, all three addressed:
guest_firmware_constant_returns(core/libs/tests/GuestFirmwareConstantReturns.cpp, registered incore/libs/CMakeLists.txtwith the Windows DLL paths of all eight libraries) calls each of the 29 exports and checks its exact return, grouped by library. It passes on Linux, as do the existing tests for those libraries..sprx(firmware 12.00) next to its body. It still says the values are read from disassembly and not measured on a console, and the debt files don't claim otherwise.main(7b1c9cac71) before running the tests.