feat(libkernel): declare 19 exports with known signatures #2269
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2269"
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 brycebrower2008 on 2026-10-09T14:04:57Z.
What
Declares 19 libkernel exports that the PS5 module has and no library defined, as throwing stubs in
Unimplemented.cpp:sceKernelSettimeofday,sceKernelError,sceKernelGetAllowedSdkVersionOnSystem,sceKernelGetCompiledSdkVersion,sceKernelGetSystemSwVersion,get_authinfo,sceKernelGetAppInfo,sceKernelTitleWorkaroundIsEnabled,sceKernelGetProcessType,__sys_regmgr_call,sceKernelMmap,sceKernelMapNamedSystemFlexibleMemory,sceKernelMunlock,sceKernelGetModuleInfo2,sceKernelGetModuleInfoInternal,sceKernelGetModuleList2,__pthread_cleanup_push_imp,sceKernelOpenEventFlagandsceKernelCloseEventFlag.Signatures follow shadPS4's kernel library and, for the event flag calls, the OpenOrbis headers (PS4); TechnicalDebt records that they are not confirmed for the PS5. Several of these (
sceKernelError,sceKernelMmap,sceKernelMunlock, the SDK version getters) could be implemented on top of what libkernel already has; that is left for follow-ups.How the functions were chosen: each one is in the PS5 module's export list in ps5-payload-dev/sdk
sce_stubs(generated from firmware.sprxexports), its name hashes to the NID shadPS4 registers, no library inmaindefines that NID, and none of the open pull requests adds it (checked against theAPS5_VABIdefinitions in the head of every open PR). Only functions with a published signature are included; exports whose signature nobody has published are left out rather than declared without parameters.Tested
Linux (Ubuntu 24.04, GCC 13.3), full build with
BUILD_TESTING=ON, with this branch merged together with the other three declaration PRs.ninja libsbuilds and NID-patches every library;patched_libraries,guest_http,guest_http_response_header,guest_http2,progress_report,nid_patcher_dynamic_strings,nid_patcher_symbol_versionsandstrict_nid_filterpass.readelf --dyn-symson the patched.prxfiles shows each new function exported under its NID.guest_sce_netaborts in the test container on unmodifiedmaintoo, because the container has no IPv6 (socket(AF_INET6)fails withEAFNOSUPPORT).tools/check_conventions.py --base origin/mainpasses. No title or homebrew run: these are throwing stubs, so they only change which imports bind at startup.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-09T14:34:45Z.
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)core/libs/prx/libkernel/Unimplemented.cppL24-25Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:47:35Z.
Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head
eac88f5d, merged ontomaind70b8998in one build with 38 other PRs that had no Windows run.No title was run.
🤖 Addressed by Claude Code
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:11:01Z.
Closing: these are throwing stubs, so nothing gets implemented; the only effect is on the progress count, and no title is shown stopping at any of them on main (same as #2193). Please send the function a title reaches, with the title ID and the log line.
Pull request closed