feat(libSceSysmodule): register libScePsml module ID (0x137) #4071

Closed
Kikoarl wants to merge 1 commit from upstream-pr/4071 into main
Kikoarl commented 2026-10-11 22:41:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-11T22:41:15Z.


What

Registers the libScePsml module ID (0x00000137 / 311) in libSceSysmodule's ModuleTable.hpp and adds lifecycle unit tests in GuestSysmodule.cpp.

Empirical Evidence (Rule 4B):

  • Title ID: PPSA21567 (Astro Bot)
  • Console log on origin/main:
    [libSceSysmodule/Export.cpp:141 sceSysmoduleLoadModule] unknown id: 311
    
  • Binary disassembly at file offset 0xe30eb0:
    0xe30eb0: mov $0x137, %edi
    0xe30eb5: call 0x74bb170        ; sceSysmoduleLoadModule(0x137)
    
  • Following sceSysmoduleLoadModule(0x137), the title queries system power/thermal management services. libScePsml is already implemented in core/libs/prx/libScePsml.

Tested

  • Linux (Ubuntu 24.04 x86_64), ctest --test-dir /tmp/anyps5_build -R guest_sysmodule: 100% tests passed (guest_sysmodule, guest_sysmodule_maps_scan).
  • Empirical live run on Astro Bot (PPSA21567): warning unknown id: 311 is eliminated.

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 in TechnicalDebt
  • 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
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4822939133 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4071). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-11T22:41:15Z. --- ### What Registers the `libScePsml` module ID (`0x00000137` / `311`) in `libSceSysmodule`'s `ModuleTable.hpp` and adds lifecycle unit tests in `GuestSysmodule.cpp`. **Empirical Evidence (Rule 4B):** - Title ID: `PPSA21567` (Astro Bot) - Console log on `origin/main`: ```text [libSceSysmodule/Export.cpp:141 sceSysmoduleLoadModule] unknown id: 311 ``` - Binary disassembly at file offset `0xe30eb0`: ```asm 0xe30eb0: mov $0x137, %edi 0xe30eb5: call 0x74bb170 ; sceSysmoduleLoadModule(0x137) ``` - Following `sceSysmoduleLoadModule(0x137)`, the title queries system power/thermal management services. `libScePsml` is already implemented in `core/libs/prx/libScePsml`. ### Tested - Linux (Ubuntu 24.04 x86_64), `ctest --test-dir /tmp/anyps5_build -R guest_sysmodule`: 100% tests passed (`guest_sysmodule`, `guest_sysmodule_maps_scan`). - Empirical live run on *Astro Bot* (`PPSA21567`): warning `unknown id: 311` is eliminated. ### Checklist - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [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] AI-assisted: yes
Kikoarl commented 2026-10-12 14:25:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Kikoarl on 2026-10-12T14:25:27Z.


Consolidated into #4068 alongside 0x10B per @oneandonlydean's request.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6126244324 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4071#issuecomment-6126244324). Originally posted by [Kikoarl](https://github.com/Kikoarl) on 2026-10-12T14:25:27Z. --- Consolidated into #4068 alongside 0x10B per @oneandonlydean's request.

Pull request closed

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!4071
No description provided.