fix(libSceAmpr): export sceAmprAmmSetPageTablePoolOccupancyNotificationThreshold #4251
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4251"
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 Dextroid17 on 2026-10-12T02:24:33Z.
What
Exports
sceAmprAmmSetPageTablePoolOccupancyNotificationThreshold(touqMEt6qXQ) — once the twolibkernelrecorders of #4214 (#4244) and the sibling export below are landed, this is the last import Trails in the Sky 2nd Chapter (PPSA35169, 01.003.000) is left missing onlibSceAmpr.prx. The name hashes to exactly that NID (tools/nid_names.py), so the plain export binds it, and the built library carries it:nm -DlistssceAmprAmmSetPageTablePoolOccupancyNotificationThresholdin the producedlibSceAmpr.prx.Nothing in this tree implements the call, and the only counterpart elsewhere is itself a placeholder. KytyPS5's
libAmpr.cppbinds the same NID toAmmSetPageTablePoolOccupancyNotificationThreshold(uint32_t), whose whole body isPRINT_NAME(); return OK;— it never reads the value it is handed. Porting that would ship exactly the success-that-ignores-its-input this project refuses, so the export throws instead:NotImplemented_nid_no_patch, the documented state for an unimplemented export inCONTRIBUTING.md. The declared arity follows the existing stubs in this tree, which take no parameters and throw before any argument is read.The sibling import of the same set,
sceAmprAmmGetUsageStatsData(KqiWXLgCVe0), is deliberately not in this PR: three other open PRs already carry it — #3814 and #4220 as throwing stubs, #4207 as an implementation from a cited layout. A copy here would only put a second PR on the same export.Tested
Linux (CachyOS), GCC 16.2.1, Release, full build of
main+ this branch:guest_ampr_tests(registered as ctestguest_ampr_markers) passes, andnm -Don the producedlibSceAmpr.prxlists the export. Onmain(d146ec1b6) neither this name norsceAmprAmmGetUsageStatsDataexists anywhere undercore/, so no library built frommaincan resolve either NID.libkernelrecorders (#4244), thesceAmprAmmGetUsageStatsDataexport (#3814 / #4207) and this one: the title clears the wall in #4214 and gets much further than before, creating its Vulkan device and swapchain, touching save data and running 16 game threads (measured). It then stops on an unrelated NGS2 audio wall, filed as #4246. Only the export set moves the title, which is why this is one export of that set and not a fix on its own.tools/check_conventions.pypasses.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-12T02:25:35Z.
Progress report (
d146ec1→ef3b121)📉 System libraries: 86.52% (-0.02%, +1 declared functions)
🆕 1 declared as stubs
sceAmprAmmSetPageTablePoolOccupancyNotificationThreshold