Repository navigation
fix(libkernel): answer sceKernelGetPageTableStats - #4101
Conversation
|
Merged current AI-assisted (Claude Code). |
|
Please rebase onto main instead of merging it in: 5cec557 is a merge commit, and branches here carry none. No code change needed. |
5cec557 to
de0fd77
Compare
|
Rebased onto current AI-assisted (Claude Code). |
de0fd77 to
ab01948
Compare
ab01948 to
2f356c1
Compare
|
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.
|
PPSA30601 (Resonance) stops at the throwing stub. The four int* arguments follow OpenOrbis' libkernel.h, the Orbital type database and SharpProspero; the values follow KytyPS5 (2048 entries of 2 MiB per side) without its accounting of used entries, listed in TechnicalDebt.md. A null pointer returns EFAULT. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2f356c1 to
d283d48
Compare
|
Checked against KytyPS5 |
What
Resonance: A Plague Tale Legacy (PPSA30601) stops at
sceKernelGetPageTableStats not implementedonce its imports are exported (#4067). The call now answers instead of throwing:int sceKernelGetPageTableStats(int* cpuTotal, int* cpuAvailable, int* gpuTotal, int* gpuAvailable), as in OpenOrbis'libkernel.h, the Orbital type database and SharpProspero (KernelMemoryQuery.cs: "how many page-table entries the module was given for each side and how many are left").KernelGetPageTableStats) and all of them available. KytyPS5 additionally counts the 2 MiB entries of the committed ranges as used; this PR does not. A null pointer returnsSCE_KERNEL_ERROR_EFAULT, as in KytyPS5.CheckPageTableStatsinGuestMemory.cppcovers the answer and the four null-pointer cases; without the change the call throws and the test aborts.Tested
mainwith fix(libkernel): restore Windows select build for Demons Souls testing #4021 applied (the Windows build ofmainis broken byHostPoll; unrelated to this change):ctest -R guest_memorypasses;tools/check_conventions.py --base upstream/mainpasses.guest_memory_pool_statswas not built here.mainalone), and what the title does with the numbers.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)