feat(libkernel): implement sceKernelReleaseFlexibleMemory #952
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/952"
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 CnRJay on 2026-10-06T20:13:33Z.
What
Implements
sceKernelReleaseFlexibleMemory(void* addr, size_t len)(teiItL2boFw), which threw before.sceKernelMunmap, which unmaps the range and returns its pages to the flexible memory budget. fpPS4 (ps4_sceKernelReleaseFlexibleMemoryinkernel/ps4_map_mm.pas) and prosper (hle_kernel_mem.cpp) both bind it to munmap; shadPS4 and KytyPS5 have no body.Tested
Windows 11 (winlibs GCC): new
CheckReleaseFlexibleMemoryinguest_memorymaps 64 KiB of flexible memory, checks the available size drops by 64 KiB and returns after the release, then remaps the same address with the fixed+no-overwrite flags (0x90) to show the range is free and its pages are zeroed. Passes; it fails onmainbecause the stub throws.tools/progress.py: libraries +1. No title run.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 github-actions[bot] on 2026-10-06T20:13:57Z.
Progress report (
5b35909→83e3ef8)📈 System libraries: 87.03% (+0.03%, +1 implemented functions)
✅ 1 implemented
sceKernelReleaseFlexibleMemoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-06T20:24:14Z.
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)docs/dev/TechnicalDebt.mdL69