feat(prx): declare the missing PS5 3.20 system exports in a third batch #8472
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8472"
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 juanpimg on 2026-10-20T13:14:07Z.
What
Declares 196 PS5 3.20 system exports that AnyPS5 does not provide, across 4 libraries.
AnyPS5 resolves a title's imports by NID, so a title that imports a system function that no AnyPS5 library provides fails to load with an unresolved import. Declaring them as throwing stubs lets those titles load and reach their next blocker, which is what the bring-up process needs.
Every declaration calls
NotImplemented_nid_no_patchand returns 0; none of them implements the function. The signatures are unknown for all of them, so they are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library.The list is the intersection of the export table of the console's library (function symbols only), the pinned aerolib names and the functions not yet defined anywhere in the repo. Every name recomputes to its NID with
tools/nid_names.py.These are the exports that open pull request #8747 does not declare: 17 in
libSceBgft, 32 inlibSceNpUniversalDataSystem, 76 inlibSceNpUtilityand 71 inlibSceSysCore. The 55 exports that #8747 declares were removed from this change, so the two pull requests no longer implement the same functions.libSceNpUniversalDataSystemhas noExport.cpphere, so its declarations go in a newcore/libs/prx/libSceNpUniversalDataSystem/PendingExports.cpp, the waylibSceNgs2was added in #8106.tools/pr_overlap.pyreports no shared export with any open pull request: its Same exports column for #8747 is empty. It reports #6977 as touchingcore/libs/prx/libSceNpUtility/Export.cppwithout being able to compare it, and the fifteen exports it declares there were removed from this change.tools/progress.pyreports system libraries at 4609/11143 (41.36%) on this branch, against 4609/10947 (42.1%) on currentorigin/main. The branch is based on the currentorigin/mainand declares 196 exports, which is the difference between the two denominators. The branch is based on the currentorigin/mainand declares 196 exports, which is the difference between the two denominators. These are pending declarations, so the implemented count is unchanged by this branch.Tested
CachyOS Linux, kernel 7.2.11-1-cachyos, GCC 16.2.1, CMake 3.31.6, Ninja 1.12.1, Release build.
cmake --build build --parallel, no error.ctest --test-dir build --output-on-failure -j4: 1808 of 1813 pass.agc_driver_sample_order,agc_driver_sample_order_grid_referenceandagc_driver_sample_order_recipe_depth_locationsfail identically onorigin/main, so they are pre-existing failures. Thenet_dontwait_blocking*tests are timing sensitive and fail intermittently under the parallel full-suite run; they pass in isolation on this branch and onorigin/mainalike.guest_sysmodulefails intermittently and fails identically onorigin/mainwhen it does.python3 tools/check_conventions.py --base origin/main: all conventions checks passed.python3 tools/check_test_registration.py build: 1142 test executables, none unregistered.python3 tools/pr_overlap.py --branch feat/prx-declare-ps5-3.20-exports-tier3: no shared export with any open pull request.tools/nid_names.pyagainst the inventory, every symbol was checked againstorigin/mainso that no NID is exported twice, and every symbol was checked against the host C library and against its own library's sources so that no declaration interposes on a function the library itself calls.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 oneandonlydean on 2026-10-21T03:05:12Z.
@juanpimg FYI: #8747 has been closed. Of the 55 exports this PR dropped for it, #8818 re-declares 44. The other 11 (
sceNpUniversalDataSystemInt*: AbortHandle, CheckNetSyncTitles, CreateContext, CreateHandle, DeleteAllData, DeleteUserDataWithServerData, DestroyContext, DestroyHandle, Initialize, NetSyncTitles, Terminate) are not in any open pull request now, in case you want to add them back here.Imported from boykopovar/AnyPS5. Originally posted by juanpimg on 2026-10-21T08:41:55Z.
Thanks for the heads-up, that was useful.
The 11
sceNpUniversalDataSystemInt*exports turned out to be inmainby the time Iread your comment, so there was nothing left to add back. The same happened with the
exports of
libSceAppContent,libSceHttp2,libSceNpPartyandlibSceNpTrophy2: theyare all provided now, through #8818 and the other pull requests that followed #8747 being
closed.
#8747 and #8818 having been closed and reopened in smaller pieces is the right shape. What
is left of my two pull requests is the part that no open pull request declares:
libScePosixForWebKit,libSceRazorCpu,libSceSharePlay,libSceSsl,libSceSysUtil,libSceUsbd,libSceVrTracker)libSceBgft,libSceNpUniversalDataSystem,libSceNpUtility,libSceSysCore)tools/pr_overlap.pyreports no shared export with any open pull request for either one,and both were trimmed down from what they were, so the set as a whole covers each export
once.
For the next pull request in this family:
tools/export_gap.pycomputes the list. Itintersects the console's export table with the pinned aerolib names and the exports the
repository does not define yet, and it recognises what a library already provides
through an
APS5_VABIdeclaration, a_nid_postfixname, anAPS5_EXPORTbinding or amacro, so an export that is already there does not get declared twice. It also reports the
missing exports whose name the library calls itself, because declaring one of those
interposes on the library's own call.
It is in #8588, which is the pull request of this series with a build on all four
platforms.