Repository navigation
Conversation
9a4d2e1 to
e0b5f72
Compare
|
Windows test of this PR. Environment: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, Result: guest_memory (1 of 1) pass. Not checked: whether the test fails without the change in the library code; the PR was not tested alone, only in the combined merge; no title run; Linux not tested. AI-assisted (Claude Code). |
sceKernelMapNamedFlexibleMemory passed its flags straight to the shared flexible mapper, so the SDK 9 heap flag 0x8000 reached the placement code, which rejects any bit outside its supported mask and throws. The unnamed sceKernelMapFlexibleMemory and the Internal variant both drop that flag first, and the Internal variant is defined as the named entry point with the flag stripped, so the named entry point rejecting it is an inconsistency: the same caller fails through one export and succeeds through another. Ignore 0x8000 in the named variant too, as the other two already do, and let the Internal variant keep delegating to it. Add a GuestMemory test mapping through the named export with the flag set and its meaning still unestablished, as recorded in the libkernel debt entry.
e0b5f72 to
c464c12
Compare
|
Thanks for the Linux verification. The tested head |
|
Closing: no title is known to reach this. With the queue at 700+ open PRs, please hold off on new PRs that don't name a title needing the change until it's down. If a title stops on this on current main, reopen with the title ID and the log line. |
What
sceKernelMapNamedFlexibleMemorypassed itsflagsstraight to the shared flexible-mapper, so the SDK 9 heap flag0x8000reachedMapPlaced, which rejects any bit outside its supported mask and throws:The two sibling entry points already ignore it:
sceKernelMapFlexibleMemorymasks it off before_mapFlexible, andsceKernelMapNamedFlexibleMemoryInternalis defined as the named call with the flag stripped. So the same caller succeeds through one export and throws through another, which is the inconsistency this fixes.The named variant now drops
0x8000too, and the Internal variant keeps delegating to it without its own copy of the mask. The libkernel debt entry that records flag0x8000as accepted-and-ignored now lists the named variant alongside the other two.Tested
Not tested on a console. The added
GuestMemorycase maps through the named export with0x8000set and checks the mapping and its range name; the existing cases for the unnamed and Internal variants (including the0x20000rejection) are unchanged.g++ -std=c++20 -fsyntax-onlyon the changed C++ files andtools/check_conventions.py --base upstream/mainpass.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)