diff --git a/Core/HLE/sceKernel.cpp b/Core/HLE/sceKernel.cpp index c5c9f23b80..824c951492 100644 --- a/Core/HLE/sceKernel.cpp +++ b/Core/HLE/sceKernel.cpp @@ -976,3 +976,8 @@ void Register_ThreadManForKernel() { RegisterModule("ThreadManForKernel", ARRAY_SIZE(ThreadManForKernel), ThreadManForKernel); } + +void Register_LoadExecForKernel() +{ + RegisterModule("LoadExecForKernel", ARRAY_SIZE(LoadExecForKernel), LoadExecForKernel); +} diff --git a/Core/HLE/sceKernelMemory.cpp b/Core/HLE/sceKernelMemory.cpp index 46e5375397..bacbd2220c 100644 --- a/Core/HLE/sceKernelMemory.cpp +++ b/Core/HLE/sceKernelMemory.cpp @@ -2300,3 +2300,33 @@ void Register_SysMemForKernel() { void Register_SysMemUserForUser() { RegisterModule("SysMemUserForUser", ARRAY_SIZE(SysMemUserForUser), SysMemUserForUser); } + + +static int sceKernelCreateHeap(int partitionId, int size, int flags, const char *Name) +{ + return hleLogError(SCEKERNEL, 0, ""); +} + + +static int sceKernelAllocHeapMemory(int heapId, int size) +{ + return hleLogError(SCEKERNEL, 0, ""); +} + +static int sceKernelDeleteHeap(int heapId) +{ + return hleLogError(SCEKERNEL, 0, ""); +} + +const HLEFunction SysMemForKernel[] = +{ + { 0X636C953B, &WrapI_II, "sceKernelAllocHeapMemory", 'I', "ii" }, + { 0XC9805775, &WrapI_I, "sceKernelDeleteHeap", 'I', "i" }, + { 0X1C1FBFE7, &WrapI_IIIC, "sceKernelCreateHeap", 'I', "iiis" }, +}; + +void Register_SysMemForKernel() +{ + RegisterModule("SysMemForKernel", ARRAY_SIZE(SysMemForKernel), SysMemForKernel); +} + diff --git a/Core/HLE/sceKernelMemory.h b/Core/HLE/sceKernelMemory.h index 2396792436..96de13e23e 100644 --- a/Core/HLE/sceKernelMemory.h +++ b/Core/HLE/sceKernelMemory.h @@ -68,3 +68,5 @@ int sceKernelReferTlsplStatus(SceUID uid, u32 infoPtr); void Register_SysMemForKernel(); void Register_SysMemUserForUser(); +void Register_SysMemForKernel(); +