shadPS4/src/core/libraries/kernel
Stephen Miller 99b90cbd5c
Minor libkernel changes (#2721)
* sceKernelDebugOutText

Some homebrew use this for logging, and these logs do show up in console klogs.
I wasn't sure where the most suitable place for this function would be, so I made a separate file for these debug functions.

* Implement kernel exit

Some homebrew I have use this exit when an error occurs. Since actually closing the emulator isn't implemented yet, I've used an unreachable message that logs the status code.
I've placed it in process.cpp for now, let me know if I should change that.

* Improved implementations for sceKernelDebugRaiseException functions

These functions take in two parameters, an error code and some other value that I have no idea what is for. If that second parameter is not zero, they return ORBIS_KERNEL_ERROR_EINVAL before any calls to mdbg_service.
These improved implementations add the early error return and a message with the error code to the unreachable.

* Add missing exports

Homebrew apps like to use these kernel exports of posix functions instead.

* Clang
2025-03-30 01:27:33 +02:00
..
sync semaphore: Attempt to acquire before checking timeout 2024-12-24 15:39:17 +02:00
threads Minor libkernel changes (#2721) 2025-03-30 01:27:33 +02: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
debug.cpp Minor libkernel changes (#2721) 2025-03-30 01:27:33 +02:00
debug.h Minor libkernel changes (#2721) 2025-03-30 01:27:33 +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 libkernel: Filesystem code cleanup (#2554) 2025-03-26 18:03:35 +02:00
file_system.h libkernel: Filesystem code cleanup (#2554) 2025-03-26 18:03:35 +02:00
kernel.cpp Minor libkernel changes (#2721) 2025-03-30 01:27:33 +02:00
kernel.h FidelityFX FSR implementation (#2624) 2025-03-12 20:33:30 +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 Minor libkernel changes (#2721) 2025-03-30 01:27:33 +02:00
process.h Handle error behavior in sceSysmoduleGetModuleInfoForUnwind stub (#2629) 2025-03-09 23:17:33 +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 clock_gettime fixes for windows (#2659) 2025-03-20 22:24:47 +02:00
time.h sceKernelAio* implementation (#2160) 2025-01-16 18:27:52 +02:00