fix(libkernel): build sceKernelVirtualQuery on linux #44
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/44"
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 oneandonlydean on 2026-09-28T00:33:10Z.
What
core/libs/prx/libkernel/DirectMemory/Export.cppincludes<windows.h>unconditionally and callsVirtualQueryin thesceKernelVirtualQueryfallback for memory the allocation registry doesn't know. Sincea503d0b(#5)libkernelno longer compiles on Linux:How
The Windows path is unchanged and now behind
#ifdef _WIN32. On Linux, the fallback reads/proc/self/maps, takes the mapping that contains the address as the region, and derives writable/executable from its permissions. An unreadable (---p) or unmapped address returnsSCE_KERNEL_ERROR_EACCES, the same result as the non-MEM_COMMITcase on Windows.Testing
GCC 16.2.1 on Linux: the
libstarget builds again.ctest -E agc_driver_flipgives 34/36; the two failures areagc_driverandagc_driver_pm4, which don't touch this file. (agc_driver_fliphangs here without a display, so it was excluded.)