feat(libkernel_sys): implement __sys_is_development_mode export #14304
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14304"
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 bipinkrish on 2026-11-01T09:01:46Z.
What
Report development mode as disabled (
0) for the runtime's fixed retail profile. The export takes no arguments and now uses theuint64_treturn declared by PS5SDK, replacing the inventory's unverifiedintplaceholder.Console return values and nonzero development-mode bits are unmeasured. The debt entry now says so directly. The cited ps5-hen hook manufactures
0xc001; it does not measure a retail result.libkernel_webremains a separate unimplemented export.The five PRs listed in the overlap review (#11031, #11034, #14085, #14257, and #14299) have merged into
main. The rebase includes their changes and reconciles the shared debt inventory. This PR has no remaining dependencies.Tested
guest_kernel_sys_development_modeon3e09be642b3, rebased onto1b485ff7457. The test checks repeated queries and guest errno preservation.9e72210ea08f3af254c901c14c0094742f0e0272: job 124839617956 selected, compiled and linkedguest_kernel_sys_development_mode_tests. CTest test 526 passed in 0.04 seconds at2026-11-01T12:31:36Z. The complete job passed 2586/2586 tests. Verified from the raw job log.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 MarcZX10 on 2026-11-01T09:23:19Z.
Review: DISMISSED
Reviewed — changes requested
The implementation and hosted checks look sound, but the required landing order for the overlapping debt-file changes is not recorded or agreed in the PR checklist.
What I ran
Reviewed head
d62f2407866cd9c7bcb84252e5a4138bd4fd5249against PR basec674f8c14da93df7a6b37657117ca3f58357477f. The exact head previews cleanly on currentmainat26fa1212b82f76dd49cf12d65e445d6ff3e0844c. Pairwise previews against the current heads of #11031, #11034, #14085, #14257 and #14299 conflict indocs/dev/debt/libkernel_sys.md. Environment: Debian GNU/Linux 12, Python 3.11.2, Git 2.39.5, GCC 12.2.0. No local C++ build or CTest was run; the hosted Windows workflow built and ran the new test.Results
guest_kernel_sys_development_modeis registered.docs/dev/debt/libkernel_sys.mdfor all five open PR heads listed above.Raw selected output
Negative control
Findings
Blocking
Depends on: none, but the PR description says #14257 and #14299 touch the same three files and that the later branch will need rebasing. The repository's live overlap comment also lists #11031, #11034 and #14085 as overlapping the debt entry; all five PRs remain open, and pairwise previews with their current heads conflict indocs/dev/debt/libkernel_sys.md. The contribution rule asks authors to agree which overlapping PR lands first and declare the dependency. Please coordinate the order with the affected authors and update the checklist to name any preceding PRs (or record the agreed order and explain whynoneremains correct if no branch depends on another).Non-blocking
Sources
Not verified
I did not run a local build, CTest, console test, or a negative control. Linux and specialized hosted jobs were skipped. The PR's claim about the retail console response is not independently measured here.
To get this to a good state
Record an agreed landing order and the corresponding dependency declaration for the overlapping PRs. I will rerun the same overlap and no-build checks on the updated head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T07:51:09Z.
Review: COMMENTED
Reviewed — no blocking findings;
__sys_is_development_modereturns 0, but its new guest test is absent from the Windows runThis PR replaces the
NotImplementedstub for__sys_is_development_modewith an export that returns 0, changes its return type tostd::uint64_t, and adds a guest test with a CTest case. I read the export change in full. The Windows run passed 2586 of 2586, but the new testguest_kernel_sys_development_modedoes not appear in the Windows log at all, and I did not establish why.What I ran
9e72210ea08f3af254c901c14c0094742f0e0272; basee67cc818696fd6e6c58ac80adc6550c54aed68e8. 5 files, +42/-6:core/libs/CMakeLists.txt(+11, the new test target and CTest case),libkernel_sys/AdditionalExports.cpp(+4/-2),libkernel_sys/include/AdditionalExports.hpp(+1/-1),tests/GuestKernelSysDevelopmentMode.cpp(+25, new), anddocs/dev/debt/libkernel_sys.md(3 lines; not read).__sys_is_development_mode_nid_postfixreturns0and its declaration isstd::uint64_t. The CMake block registersguest_kernel_sys_development_mode_testsnext toguest_kernel_sys_swapcontext.guest_kernel_sys_swapcontextwas built, linked and started in that run. No line forguest_kernel_sys_development_mode, its target, or its binary appears in the log.Results
guest_kernel_sys_development_mode(the new test)__sys_is_development_modereturns 0 (read)Read-only check output
Precheck was not run: no PR-head code is run here. Diff check: passed. Conventions: passed. ABI audit: passed (325 symbols). Stack check: clean, no declared dependencies, no errors. Hosted:
gh api repos/boykopovar/AnyPS5/commits/9e72210ea08f3af254c901c14c0094742f0e0272/check-runs, and the Windows job log (2586 of 2586).Negative control
Not run here. A negative control needs a local build and run of the development-mode test, and code from this head is not run here.
Findings
Blocking
None from the code read.
Non-blocking
guest_kernel_sys_swapcontextwas built and run. The cause was not established here. Check whether the registration applies on Windows, and whether the CI selection includes it.Sources
github.com/boykopovar/AnyPS5@9e72210ea0/core/libs/prx/libkernel_sys/AdditionalExports.cppgithub.com/boykopovar/AnyPS5@9e72210ea0/core/libs/CMakeLists.txt(around line 1200)github.com/boykopovar/AnyPS5@9e72210ea0/core/libs/tests/GuestKernelSysDevelopmentMode.cppwindowson 9e72210ea08f3af254c901c14c0094742f0e0272Not verified
To get this to a good state