Repository navigation
feat(libkernel): hinted and no-overwrite mappings, virtual range names and usleep - #50
Merged
boykopovar merged 2 commits intoSep 28, 2026
Merged
Conversation
The host-region fallback added with the Demon's Souls work calls VirtualQuery and includes windows.h unconditionally, so libkernel no longer compiles on Linux. On Linux, read the containing mapping and its permissions from /proc/self/maps. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ButHENCbXXt8h4EZuWUabJ
…s and usleep Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ButHENCbXXt8h4EZuWUabJ
12 tasks done
Kikoarl
pushed a commit
to Kikoarl/AnyPS5
that referenced
this pull request
Nov 18, 2026
…upscaling feat(kyty): scale presentation with FSR 1 under ANYPS5_UPSCALE=fsr
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.
Stacked on #44 (both touch
DirectMemory/Export.cpp).What
MapAlignedthrewNon-fixed mapping address hints are not implemented. On the PS5 the hint is where the search starts. On Linux the mapping is now placed at the first free, aligned range at or above the hint, found from/proc/self/mapsand mapped withMAP_FIXED_NOREPLACEso nothing existing can be replaced.RequireAvailableis now only checked for fixed mappings, because a hint may point at used memory. Windows still throws.SCE_KERNEL_MAP_NO_OVERWRITE(0x80): it was rejected as an unknown flag. WithMAP_FIXEDon Linux it maps withMAP_FIXED_NOREPLACE, and it no longer takes the "remap fixed into registered" path, so it fails instead of replacing a registered range. The unsupported-flags error now includes the flag value.sceKernelSetVirtualRangeNamewasNotImplementedandsceKernelClearVirtualRangeNamewasn't exported. Names are now kept in a registry, split and trimmed on overlap.sceKernelVirtualQueryreports the name and splits its reported region at name boundaries.sceKernelMapNamedDirectMemoryandsceKernelMapNamedFlexibleMemorynow name the range instead of ignoring the name.usleepis exported (POSIX, besidenanosleep).Testing
guest_memorytest extended: named flexible map andVirtualQueryname, naming and clearing a sub-range, and (Linux) a hinted map that lands above an occupied hint and a no-overwrite map over a registered range that throws.