From 59d982a4b2b61c155213caf9a98f81423ebabb8f Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 29 May 2020 17:38:48 +0200 Subject: [PATCH] Call the `kernelInitialize();` inside the `WUMS_INITIALIZE` hook --- source/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/main.c b/source/main.c index 6ee2949..e36dd80 100644 --- a/source/main.c +++ b/source/main.c @@ -19,7 +19,6 @@ extern void KernelCopyDataInternal(uint32_t dst, uint32_t src, uint32_t len); void kernelInitialize(); extern void KernelCopyData(uint32_t dst, uint32_t src, uint32_t len){ - kernelInitialize(); KernelCopyDataInternal(dst, src, len); } WUMS_EXPORT_FUNCTION(KernelCopyData); @@ -88,6 +87,8 @@ void kernelInitialize() { ucSyscallsSetupRequired = 0; PatchSyscall(0x25, (uint32_t) SCKernelCopyData); +WUMS_INITIALIZE(){ + kernelInitialize(); } int main(int argc, char **argv) {