From 4713452731dd489c13c9415c3c31637845f108f3 Mon Sep 17 00:00:00 2001 From: Yifan Lu Date: Mon, 26 Dec 2016 08:53:02 -0800 Subject: Updated Vita platform to support renamed functions --- lib/vita/execmem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/vita/execmem.c b/lib/vita/execmem.c index ba772ae..73c5fdc 100644 --- a/lib/vita/execmem.c +++ b/lib/vita/execmem.c @@ -126,14 +126,14 @@ int execmem_foreign_write_with_pc_patch(struct execmem_foreign_write *writes, struct slab_chain *slab = (struct slab_chain *)writes[i].opt; SceUID pid = slab->pid; if (pid == SHARED_PID) { - pid = sceKernelGetProcessId(); - LOG("sceKernelGetProcessId: %x", pid); + pid = ksceKernelGetProcessId(); + LOG("ksceKernelGetProcessId: %x", pid); } LOG("PID:%x, dst:%p, src:%p, len:%x", pid, writes[i].dst, writes[i].src, writes[i].len); if (pid == KERNEL_PID) { - sceKernelCpuUnrestrictedMemcpy(writes[i].dst, writes[i].src, writes[i].len); + ksceKernelCpuUnrestrictedMemcpy(writes[i].dst, writes[i].src, writes[i].len); } else { - sceKernelRxMemcpyKernelToUserForPid(pid, (uintptr_t)writes[i].dst, writes[i].src, writes[i].len); + ksceKernelRxMemcpyKernelToUserForPid(pid, (uintptr_t)writes[i].dst, writes[i].src, writes[i].len); } cache_flush(pid, (uintptr_t)writes[i].dst, writes[i].len); } -- cgit v1.2.3