Repository navigation
feat(prx): declare the missing PS5 3.20 system exports - #8106
Conversation
AnyPS5 resolves a title's imports by NID, so a title that imports a system function no library provides fails to load with an unresolved import. The PS5 3.20 export inventory lists 193 such exports across 37 PS5 system libraries AnyPS5 implements but does not provide. Declare them as throwing stubs so those titles load and reach their next blocker. Each declaration calls NotImplemented_nid_no_patch and returns 0; none of them implements the function. Declarations with a credible prototype use it and cite the source with a pinned commit, and the rest are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library. libSceMbus and libSceSystemService are left out because pull request #7821 declares them. libSceAgc is left out because its exports are versioned, so the 3.20 NID names a different symbol from the one AnyPS5 ships. libSceAvPlayer.native is left out because it compiles libSceAvPlayer's Export.cpp. Names and NIDs come from the PS5 3.20 export inventory at https://github.com/DNNDHH/PS5-3.20_Libs/tree/b2a77c09cd71c01f34c790cfbe98c751a13262ad
The overlap audit against origin/main and the open pull requests found 39 of the 193 declared exports that must not be declared here: - 14 that origin/main already exports. The nid_patcher computes the NID of a symbol from its name, and a name ending in _nid_postfix exports the NID of the base name, so scePadOpen, sceNetInit and the rest are already there. - 23 that an open pull request provides: #6832, #6847, #6852, #7846, #7881, #7889, #7890, #6977 and #7690. - 2 whose technical-debt file an open pull request creates: #7463 and #8094. The scope is now 30 libraries and 154 exports.
|
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.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
# Conflicts: # docs/dev/debt/libSceAcm.md # docs/dev/debt/libScePlayGo.md # docs/dev/debt/libSceSystemGesture.md # docs/dev/debt/libSceWebBrowserDialog.md
|
Rebase handoff — rebased onto current
Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, Note for the thread: this PR is in the same family as #8021/#8028, where oneandonlydean is asking which database the unbacked names come from — the same answer will likely be wanted here for the parameterized BluetoothHid declarations. To pick it up: Head is |
What
Declares 154 PS5 3.20 system exports that AnyPS5 does not provide, across 30 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. The PS5 3.20 export inventory lists 154 such exports across 30 PS5 system libraries that AnyPS5 implements but does not provide. 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. A declaration with a credible prototype uses it and cites the source with a pinned commit. The rest are declared without parameters, which resolves the import without making an ABI claim. The technical-debt files record the limitation per library.Names and NIDs come from the PS5 3.20 export inventory at
https://github.com/DNNDHH/PS5-3.20_Libs/tree/b2a77c09cd71c01f34c790cfbe98c751a13262ad
Left out, and why:
libSceMbusandlibSceSystemServiceare declared by feat(libs): declare system service import stubs for OS 3.20 compatibility #7821.libSceAgcexports versioned names (sceAgcFuseShaderHalves_0200), so the 3.20 NID names a different symbol from the one AnyPS5 ships.libSceAvPlayer.nativecompileslibSceAvPlayer/Export.cpp, so declaring there covers it.libSceBluetoothHid,libSceAudiodec,libSceAvPlayer,libSceContentExport,libScePad, twolibSceNpAuthexports and onelibSceSysmoduleexport are provided by feat(libSceBluetoothHid): export missing firmware functions from database #6832, feat(libSceAudiodec): export missing firmware functions from database #6847, feat(libSceAvPlayer): export missing firmware functions from database #6852, feat(libSceContentExport): export missing firmware content export interfaces #7846, feat(pad): support up to 4 controllers with dynamic user discovery #7881, feat(libSceNpAuth): export sceNpAuthGetAuthorizationCode and sceNpAuthGetIdToken #7890, feat: run PS4 games on the AGC driver — Limbo (CUSA01664) in game (integration branch) #6977 and feat(libSceSysmodule): implement sceSysmoduleUnloadModuleInternalWithArg #7889.libSceVrTracker2is provided by feat(libSceVrTracker2): answer as the console's module before initialization #7463 and feat(libSceHmd2): return the console's display and mirroring buffer sizes #7690, andlibSceVideodecis left to feat(libSceVideodec): implement the video decoder on top of libSceVideodec2 #8094, which creates the library and its technical-debt file.tools/pr_overlap.pyreports no shared export with any open pull request. It reports five open pull requests that edit the same technical-debt file (#7064, #7479, #7567, #7574 and #7726) without sharing an export; this change adds a separate bullet to those files, so a rebase resolves them.tools/progress.pyreports system libraries changing from 4137/5182 (79.83%) to 4137/5336 (77.53%). These are pending declarations, so the implemented count is unchanged.Tested
CachyOS Linux, kernel 7.2.9-2-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: 1651 of 1652 pass.guest_sysmodulefails identically onorigin/main(it aborts with "unknown id: 65535" insceSysmoduleIsLoaded), so it is a pre-existing failure and not a regression. Thevideo_out_*tests that need a display are skipped.python3 tools/check_conventions.py --base origin/main: all conventions checks passed.python3 tools/check_test_registration.py build: 1098 test executables, none unregistered.python3 tools/pr_overlap.py --branch feat/prx-declare-ps5-3.20-exports: no shared export with any open pull request.tools/nid_names.pyagainst the inventory, and every symbol was checked againstorigin/mainso that no NID is exported twice.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)