shadPS4/src/core/libraries/kernel
Stephen Miller 7e525a59e4 Kernel Fixes (#1605)
* scePthreadSetprio Changes

FindThread uses posix error codes, so the function export should apply the ORBIS wrapper to convert these. Since it uses posix codes, I've also renamed the function to align with other posix functions. Lastly, this fixes a compile warning about ret sometimes not getting initialized.

* Implement posix_munmap

Used by Hatsune Miku Project Diva X during intros. May help with stability on Linux, probably won't change anything on Windows.

* Exports

Some missing function exports I've seen in my tests.
sceKernelAvailableFlexibleMemorySize export is used in Final Fantasy XV Episode Duscae
posix_pthread_setprio and posix_pthread_getschedparam are used by Spider-Man Miles Morales
scePthreadKeyDelete is used in UE4 games.

I've also added in a typo fix related to my previous PR.

* libScePosix export for posix_pthread_attr_setguardsize

Used in Hatsune Miku Project Diva X v1.02
2024-11-30 11:23:48 +02:00
..
threads Kernel Fixes (#1605) 2024-11-30 11:23:48 +02:00
equeue.cpp kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
equeue.h kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
file_system.cpp Kernel Fixes (#1605) 2024-11-30 11:23:48 +02:00
file_system.h kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
kernel.cpp kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
kernel.h kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
memory.cpp Kernel Fixes (#1605) 2024-11-30 11:23:48 +02:00
memory.h kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
process.cpp kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02: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 kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
time.cpp kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00
time.h kernel: Rewrite pthread emulation (#1440) 2024-11-21 22:59:38 +02:00