feat(ulobjmgr): register and unregister object #707
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/707"
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 adriadam10 on 2026-10-05T17:26:08Z.
What
Implements
_sceUlobjmgrRegisterObjectand_sceUlobjmgrUnregisterObject(ulobjmgr), which threw.Behaviour follows shadPS4 (
src/core/libraries/ulobjmgr/ulobjmgr.cpp), the only reference with a body (KytyPS5 and fpPS4 have none):EINVAL(22), otherwise it writes id 0 and returns 0.EINVALfor an id of 0x4000 or above and 0 otherwise.The signature and the 0x4000 bound come from a PS4 reference, so they are listed under "Unknown function info". No object is actually tracked (id is always 0), which is listed under "Silent stubs". The previous stub took a single
void*, which matched no reference.Adds a
CMakeLists.txtfor the module (the libSceRazorCpu pattern) to register the test.Tested
Linux, GCC Release: new
guest_ulobjmgrtest (every error path of both calls, the id output, the 0x3fff/0x4000 bound) passes; it fails onmain(the stubs throw). Breaking each check (kind validation, id value, bound, error value) makes it fail. Allguest_*tests pass. The patchedulobjmgr.prxexports both NIDs.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T17:27:06Z.
Progress report (
0518f0e→4136a04)📈 System libraries: 79.27% (+0.06%, +2 implemented functions)
✅ 2 implemented
_sceUlobjmgrRegisterObject_sceUlobjmgrUnregisterObjectImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T18:15:17Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)docs/dev/TechnicalDebt.mdL93docs/dev/TechnicalDebt.mdL93docs/dev/TechnicalDebt.mdL93docs/dev/TechnicalDebt.mdL93docs/dev/TechnicalDebt.mdL93