shadPS4/src/core/libraries/kernel
Stephen Miller 0e315cbd8f
sceKernelReleaseDirectMemory fix (#2623)
* Fix error return on sceKernelMunmap

FreeBSD docs state that len <= 0 is a EINVAL return.

* Early return on ReleaseDirectMemory with len = 0

Calls to these two functions with len = 0 cause an assert in CarveDmemArea. Since there's no memory to release, an early return should be safe here.

* Remove check for negative length in munmap

Addresses review comment
2025-03-09 15:12:05 +02:00
..
sync semaphore: Attempt to acquire before checking timeout 2024-12-24 15:39:17 +02:00
threads Improve parameter checks for posix_pthread_rename_np (#2391) 2025-02-09 13:50:59 -08:00
aio.cpp sceKernelAio* implementation (#2160) 2025-01-16 18:27:52 +02:00
aio.h sceKernelAio* implementation (#2160) 2025-01-16 18:27:52 +02:00
equeue.cpp Fix VideoOut events (#2330) 2025-02-03 17:37:28 +02:00
equeue.h Fix VideoOut events (#2330) 2025-02-03 17:37:28 +02:00
file_system.cpp clang-format (again) 2025-01-21 21:14:05 +01:00
file_system.h sceKernelAio* implementation (#2160) 2025-01-16 18:27:52 +02:00
kernel.cpp Update kernel.cpp (#2125) 2025-01-17 22:16:07 -08:00
kernel.h core: Library cleanup (#1631) 2024-11-30 22:37:36 +02:00
memory.cpp sceKernelReleaseDirectMemory fix (#2623) 2025-03-09 15:12:05 +02:00
memory.h core: better memory configuration (#1896) 2024-12-28 12:03:00 +01:00
orbis_error.h core: Library cleanup (#1631) 2024-11-30 22:37:36 +02:00
posix_error.h core: Library cleanup (#1631) 2024-11-30 22:37:36 +02:00
process.cpp Better bounds checks for sceKernelDlsym (#2394) 2025-02-09 19:31:07 -08:00
process.h kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
threads.cpp kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
threads.h hotfix: reset stop source on thread stop 2025-01-02 12:30:05 +01:00
time.cpp kernel: re-implement clock_gettime (#2615) 2025-03-07 21:42:25 +03:00
time.h sceKernelAio* implementation (#2160) 2025-01-16 18:27:52 +02:00