fix(libc): reach the application map area end with the guest arena #652
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/652"
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 Celegans12 on 2026-10-05T11:12:42Z.
What
On Windows the guest arena ends at 0x72_0000_0000, so a fixed direct memory mapping above it throws
shared mapping outside the guest arena.HOST_USER_MAX), as doesSCE_KERNEL_APP_MAP_AREA_END_ADDRin GPCS4 (PS4 reference).GuestArenaMap_nid_postfix; whichever merges second needs a one-line rebase. No behavioural overlap.Tested
main53dc19cf: configure-DBUILD_TESTING=ON, full build,--target libs,ctest:ctest --output-on-failure)guest_memorygainsCheckFixedMappingsReachTheApplicationAreaEnd: a fixed mapping of the last two pages below 0xFC_0000_0000, read through an alias, and a refused one at the end; it fails onmainat the range check.main: without this change it aborts at that first mapping; with it, it runs on tosceAudioOut2PortCreate: data format 0xc00 is not implemented.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)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-05T13:32:29Z.
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.
main)core/libs/prx/libc/src/GuestArena.cppL211-212