6 #ifndef _PSP2KERN_KERNEL_SYSMEM_ADDRESS_SPACE_H_
7 #define _PSP2KERN_KERNEL_SYSMEM_ADDRESS_SPACE_H_
80 #if defined(PSP2_SDK_VERSION) && PSP2_SDK_VERSION <= 0x1692000
81 int ksceKernelSwitchVmaForPid(
SceUID pid);
87 #define ksceKernelGetPidContext ksceKernelProcessGetContext
88 #define ksceKernelSwitchPidContext ksceKernelProcessSwitchContext
89 #define ksceKernelGetPaddr(va, pa) ksceKernelVAtoPA(va, pa)
90 #define ksceKernelGetPaddrList(input, list) ksceKernelVARangeToPAVector((const SceKernelVARange *)input, list)
107 memcpy(context, ctx,
sizeof(*context));
uint8_t type
0 = read?, 1 = write?, 2 = feature?, 3 = ?
Definition: bt.h:2
SceSize size
struct size(variable size)
Definition: debug.h:0
SceUID pid
Definition: debug.h:1
void * memcpy(void *dst, const void *src, unsigned int len)
Copy memory1 to memory2.
int ksceKernelVARangeToPARange(const SceKernelVARange *va_range, SceKernelPARange *pa_range)
Get the physical address range of a given virtual address range.
int ksceKernelProcessSwitchContext(const SceKernelProcessContext *new_context, SceKernelProcessContext *prev_context)
Switch the process context.
int ksceKernelVAtoPA(const void *va, uintptr_t *pa)
Get the physical address of a given virtual address.
int ksceKernelVARangeToPAVector(const SceKernelVARange *va_range, SceKernelPAVector *pa_vector)
Get the physical address list of a given virtual address range.
int ksceKernelAddressSpaceSetPhyMemPart(SceUID guid, SceUInt32 index, void *pPhyMemPart)
int ksceKernelAddressSpaceVAtoPA(void *pAS, SceUInt32 mode, void *pVA, void **pPA)
VITASDK_BUILD_ASSERT_EQ(0xC, SceKernelProcessContext)
int ksceKernelAddressSpaceUnmap(SceUID uid, int a2, int a3, void *addr, SceSize size)
SceUID ksceKernelCreateAddressSpace(SceUID pid, const char *name, SceUInt32 type, void *pOpt)
SceUInt32 TTBR1
Definition: address_space.h:48
SceUInt32 CONTEXTIDR
Definition: address_space.h:50
int ksceKernelProcessGetContext(SceUID pid, SceKernelProcessContext **ctx)
Get the process context.
int ksceKernelDeleteAddressSpace(SceUID guid)
int ksceKernelAddressSpaceFreeAllMemBlock(SceUID guid)
SceUInt32 DACR
Definition: address_space.h:49
Definition: address_space.h:47
int32_t SceInt32
Definition: types.h:44
unsigned int SceSize
Definition: types.h:56
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
uint32_t SceUInt32
Definition: types.h:45
#define SCE_KERNEL_PROCESS_ID_SELF
Current process's UID - pass to APIs expecting a process ID to operate on calling process.
Definition: types.h:100