feat(libkernel): accept flag 0x8000 in sceKernelMapNamedFlexibleMemoryInternal #957
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/957"
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 JAB-dev on 2026-10-06T20:25:04Z.
What
Follows #355, which added
sceKernelMapNamedFlexibleMemoryInternaland deliberately left flag0x8000throwing because its meaning was unknown. Every known caller is the heap of the SDK 9libc.prxthat titles bundle. It calls(&addr, len, 3, 0x8000, name)at three sites, where an olderlibc.prxpasses flags 0 tosceKernelMapNamedFlexibleMemory. So every title with that libc still stops at its first allocation.GUEST_MAP_UNKNOWN_8000and includes it inSUPPORTED_MAP_BITSof itsKernelMapNamedFlexibleMemory.0xFF408490) contains it, and its Internal export forwards to the public function.sceKernelMapNamedFlexibleMemoryand the other mapping calls still throw on it, and other unknown flags still throw through the Internal variant too.Tested
guest_memoryCheckInternalNamedFlexibleMapping:0x8000, checks the name and writes the last byte;0x20000) still throws and leaves the address null.main'sExport.cppthe test fails withUnsupported memory mapping flags 0x8000.main): 357/357.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by fisherjoey on 2026-10-08T05:24:40Z.
This looks like the same change as #1392: both make
sceKernelMapNamedFlexibleMemoryInternalaccept flag0x8000, here by masking it inDirectMemory/Export.cpp(IgnoredInternalFlag), there by adding it toSupportedFlags. Both extendtests/GuestMemory.cpp. Linking so they can be compared.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T05:42:53Z.
Checked build + full ctest on top of current main (413/413), and that
guest_memoryfails without theExport.cppchange. The flag is accepted only through the Internal variant, other unknown flags still throw, and KytyPS5'sGUEST_MAP_UNKNOWN_8000matches the PR's description. TechnicalDebt entry is in place; linux and windows CI are green. Merging.