feat(libSceAjmi): implement control and split-run batch aliases #21182
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21182"
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 Noxy-HNR on 2026-11-15T22:44:34Z.
What
Follow-up to #16283.
sceAjmiBatchJobControlBufferRa(J3UwQ5e6sNU) andsceAjmiBatchJobRunSplitBufferRa(r7NMFYcJi08) threw in libSceAjmi. They now forward to the module's ownsceAjmBatchJobControlBufferRaandsceAjmBatchJobRunSplitBufferRabuilders, the same way the inline and run aliases do. Those builders already match the 13.42libSceAjmi.sprxroutines at 0xb80 and 0xd20 byte for byte under an emulator (#12372 comment). The signatures follow those twins.The debt entry already says 17 of the 18 NID-named exports share a
sceAjmtwin's 13.42 address. No published report gives these two symbols' own addresses, so the new debt line says the forwarding rests on that count. The counts and the table drop both names, and the new line notes the guest-range checks the aliases inherit from the twins.Tested
Linux (Ubuntu 24.04, GCC 13.3, Release), merged with current
mainincluding the guest-range checks fromcee955abb5:guest_ajmi_batch_*, 8/8 passing in 3 of 3 runs. The newcontrolandsplitcases call each alias on the unpatched and NID-patched module and compare the bytes and returned pointer with the module'ssceAjm*builder over fills, instances, flags, sizes, buffer counts 0 to 3 and with and without a return address. They also check the measured 0xCC layouts fromGuestAjm.cpp. Dropping the return address in either alias makes all four new tests fail (mutation check). Windows: not run locally; the Windows CI job covers it.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)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-16T00:47:33Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
dd91bfaa2a:tools/check_conventions.pypassed;git diff --checkclean.guest_ajmi_batch_aliases_testsbuilt cleanly.guest_ajmi_batch_inline_unpatched,guest_ajmi_batch_run_unpatched,guest_ajmi_batch_control_unpatched,guest_ajmi_batch_split_unpatched,guest_ajmi_batch_inline_nid,guest_ajmi_batch_run_nid,guest_ajmi_batch_control_nid,guest_ajmi_batch_split_nid):core/libs/prx/libSceAjmi/Export.cpp,core/libs/prx/libSceAjmi/include/Api.hpp,core/libs/prx/libSceAjmi/include/InventoryExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Looks Good To Me
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-16T05:09:33Z.
Review: APPROVED
Reviewed — looks good
The alias implementations forward to the corresponding builders, and the source and tests I inspected support the stated behavior; I did not run checks.
What I ran
Reviewed head
dd91bfaa2a2c0541d1ba3c00cc710f025c39af90. No commands or tests were run; the author reports Linux tests and a mutation check in the PR description.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
I did not run the reported tests, mutation check, or Windows CI, and did not verify console behavior or other firmware versions. Read:
core/libs/prx/libSceAjmi/CMakeLists.txt,core/libs/prx/libSceAjmi/Export.cpp,core/libs/prx/libSceAjmi/include/Api.hpp,core/libs/prx/libSceAjmi/include/InventoryExports.hpp,core/libs/tests/GuestAjmiBatchAliases.cpp, anddocs/dev/debt/libSceAjmi.md. No changed files were excluded;files.jsonwas not available in the review bundle.To get this to a good state
Nothing is required.