feat(libkernel_sys): implement environment identity predicates #15970
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15970"
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 ashwin280802 on 2026-11-05T04:19:54Z.
What
Implement six
libkernel_sysenvironment and hardware identity predicates to model AnyPS5's baseline retail CEX Prospero environment:sceKernelIsAuthenticTrinity(returns 0: base PS5 Prospero, non-Trinity)sceKernelIsCloudDevkit(returns 0: retail CEX)sceKernelIsCloudkit(returns 0: retail CEX)sceKernelIsCronos(returns 0: retail CEX, not Cronos cloud server)sceKernelIsDebuggerAttached(returns 0: no debugger attached)sceKernelIsM2DeviceAttached(returns 0: internal base storage, no secondary M.2 SSD)Documents the silent stubs under
### Silent stubsindocs/dev/debt/libkernel_sys.md, prunes the 4 implemented entries from the throwing stubs inventory table, and synchronizes the table count to 312. Adds test assertions for all 6 predicates inguest_kernel_sys_constants.Tested
Windows 11 (AMD64, Intel Core i5-14600K):
guest_kernel_sys_constants:guest_kernel_sys_(console_identity|constant_unknowns|constants|cpumode|neo_mode):sceKernelIsDebuggerAttached()to return 1; test failed immediately with SIGABRT / 0xc0000409.python3 tools/check_conventions.py --base origin/mainpassed cleanly with 0 errors.Not verified: Physical console return values under dynamic hardware reconfiguration or attached debuggers.
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)Pull request closed