|
PSPSDK 2025-10-12
|
#include <pspuser.h>#include <pspiofilemgr_kernel.h>#include <psploadcore.h>#include <pspstdio_kernel.h>#include <pspsysreg.h>#include <pspkdebug.h>#include <pspintrman_kernel.h>#include <pspmodulemgr_kernel.h>

Go to the source code of this file.
Macros | |
| #define | pspKernelSetKernelPC() |
| Set the $pc register to a kernel memory address. | |
| #define | pspKernelSetUserPC() |
| Set the $pc register to a user memory address. | |
| #define pspKernelSetKernelPC | ( | ) |
Set the $pc register to a kernel memory address.
When the PSP's kernel library stubs are called, they expect to be accessed from the kernel's address space. Use this function to set $pc to the kernel address space, before calling a kernel library stub.
Referenced by _gdbSupportLibFlushCaches().
| #define pspKernelSetUserPC | ( | ) |
Set the $pc register to a user memory address.