Repository navigation
feat(libkernel): accept flag 0x8000 in sceKernelMapNamedFlexibleMemoryInternal - #957
Merged
adriadam10 merged 2 commits intoOct 8, 2026
Merged
Conversation
…yInternal The SDK 9 libc.prx heap maps its arenas with flag 0x8000, which threw as an unsupported flag. The flag is ignored for this function, as sharpemu does; other unknown flags still throw. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 tasks done
…/kernel-flexible-internal-hint
Contributor
|
This looks like the same change as #1392: both make |
9 tasks done
Collaborator
|
Checked build + full ctest on top of current main (413/413), and that |
10 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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