feat(libkernel_sys): report physical page size #10335
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10335"
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 MarcZX10 on 2026-10-23T18:22:15Z.
What
Implement
sceKernelGetPhysPageSizeby returning AnyPS5's existing 16 KiB guest page size,PS5_PAGE_SIZE. This keeps the export consistent with libkernel's direct-memory and mapping implementation. Console behaviour is unverified.Tested
core/libs/prx/libkernel_sys/Export.Discovery.cpp— passed.git diff --check— passed.python3 tools/pr_overlap.py --branch codex/libkernel-sys-phys-page-size --repo boykopovar/AnyPS5 --base main— no overlap with open pull requests.python3 tools/check_conventions.py --base origin/main— completed with 568 findings (289 errors) across the repository, including unrelated existing silent stubs and historical merge commit subjects. No changed-path-specific diagnostic was observed in the output.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-02T04:57:15Z.
Review: COMMENTED
Reviewed — overlap note is stale, requested 16384 assertion present
The merge-order question no longer applies because #11032 has merged, and the 16384 page-size assertion requested by review is in the head.
What I ran
Head
307be471e0c00447de3057cfaaf01c1a6012c62b(live, OPEN). Read-only:gh pr viewfor 10335 and 11032,gh apiGET on comments,gh pr diff,git diff upstream/main...<head>,git grepat the head. Nothing was built or run.Results
GuestKernelSys.cpp:908sceKernelGetPhysPageSizereturns PS5_PAGE_SIZEExport.Discovery.cpp:924-925Findings
docs/dev/debt/libkernel_sys.mdand proposes this PR go first. #11032 is merged, so the order question no longer applies. At head this PR adds one debt entry (hunk+4), and the line number 12 in the comment was not checked against this numbering.GuestKernelSys.cpp:908and the export returnsPS5_PAGE_SIZEatExport.Discovery.cpp:925.pr_overlap_encodingfails on main too. No question for you.Sources
github.com/boykopovar/AnyPS5@307be471e0/core/libs/tests/GuestKernelSys.cpp (L908)github.com/boykopovar/AnyPS5@307be471e0/core/libs/prx/libkernel_sys/Export.Discovery.cpp (L924-L925)Not verified