feat(libkernel_sys): forward sceKernelLoadStartModuleForSysmodule to sceKernelLoadStartModule #11186

Merged
camezaro-intc merged 1 commit from upstream-pr/11186 into main 2026-10-26 09:09:59 +00:00
camezaro-intc commented 2026-10-25 20:57:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by camezaro-intc on 2026-10-25T20:57:04Z.


What

Implement sceKernelLoadStartModuleForSysmodule in libkernel_sys forwarding to libkernel's sceKernelLoadStartModule, update Api.hpp, remove the stub from Export.Discovery.cpp, document in docs/dev/debt/libkernel_sys.md, and add regression tests to GuestKernelSysModuleInternal.cpp.

Tested

  • Windows 11 x86_64, built and verified focused test suite ctest --test-dir build -R guest_kernel_sys_module_internal -V (100% pass, verifying EFAULT on null path, ENOENT on nonexistent module, and res initialization).
  • Verified python tools/check_conventions.py --base upstream/main (clean).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5008640327 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11186). Originally posted by [camezaro-intc](https://github.com/camezaro-intc) on 2026-10-25T20:57:04Z. --- ### What Implement `sceKernelLoadStartModuleForSysmodule` in `libkernel_sys` forwarding to `libkernel`'s `sceKernelLoadStartModule`, update `Api.hpp`, remove the stub from `Export.Discovery.cpp`, document in `docs/dev/debt/libkernel_sys.md`, and add regression tests to `GuestKernelSysModuleInternal.cpp`. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - Windows 11 x86_64, built and verified focused test suite `ctest --test-dir build -R guest_kernel_sys_module_internal -V` (100% pass, verifying `EFAULT` on null path, `ENOENT` on nonexistent module, and `res` initialization). - Verified `python tools/check_conventions.py --base upstream/main` (clean). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 21:27:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T21:27:01Z.

Review: COMMENTED


Reviewed exact head 1257830a26fc19057f082974e8b37cbba31e94fa. The new declaration matches the existing libkernel signature, and the implementation forwards all six arguments unchanged; the focused regression covers null input, res initialization, and the missing-module result. I manually checked the overlap warning against the listed libkernel_sys changes: the exposed discovery symbols in those PRs are different, and I found no second implementation of sceKernelLoadStartModuleForSysmodule in their diffs. The shared debt-file edits may still need ordinary conflict resolution as those PRs merge, but I found no functional dependency to add. Eligibility, conventions, intake, labels, and progress-report checks pass. The PR reports focused Windows and WSL tests; the hosted product jobs are skipped by the gate, and I did not run a local product build.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645399331 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11186#pullrequestreview-5645399331). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T21:27:01Z. **Review:** COMMENTED --- Reviewed exact head `1257830a26fc19057f082974e8b37cbba31e94fa`. The new declaration matches the existing `libkernel` signature, and the implementation forwards all six arguments unchanged; the focused regression covers null input, `res` initialization, and the missing-module result. I manually checked the overlap warning against the listed libkernel_sys changes: the exposed discovery symbols in those PRs are different, and I found no second implementation of `sceKernelLoadStartModuleForSysmodule` in their diffs. The shared debt-file edits may still need ordinary conflict resolution as those PRs merge, but I found no functional dependency to add. Eligibility, conventions, intake, labels, and progress-report checks pass. The PR reports focused Windows and WSL tests; the hosted product jobs are skipped by the gate, and I did not run a local product build.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11186
No description provided.