From f5041f5d7fb0aa64028d4e021deb9eb5100d9d87 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 28 Aug 2017 18:10:22 +0200 Subject: [PATCH] add DCStoreRange --- os_functions.c | 2 ++ os_functions.h | 1 + 2 files changed, 3 insertions(+) diff --git a/os_functions.c b/os_functions.c index 9266ad0..3d74fb7 100644 --- a/os_functions.c +++ b/os_functions.c @@ -85,6 +85,7 @@ EXPORT_DECL(void *, OSSetExceptionCallback, u8 exceptionType, exception_callback EXPORT_DECL(void *, OSSetExceptionCallbackEx, s32 unkwn, u8 exceptionType, exception_callback newCallback); EXPORT_DECL(void , OSLoadContext, OSContext * context); EXPORT_DECL(void, DCFlushRange, const void *addr, u32 length); +EXPORT_DECL(void, DCStoreRange, const void *addr, u32 length); EXPORT_DECL(void, ICInvalidateRange, const void *addr, u32 length); EXPORT_DECL(void*, OSEffectiveToPhysical, const void*); EXPORT_DECL(s32, __os_snprintf, char* s, s32 n, const char * format, ...); @@ -231,6 +232,7 @@ void InitOSFunctionPointers(void) OS_FIND_EXPORT(coreinit_handle, OSSetExceptionCallbackEx); OS_FIND_EXPORT(coreinit_handle, OSLoadContext); OS_FIND_EXPORT(coreinit_handle, DCFlushRange); + OS_FIND_EXPORT(coreinit_handle, DCStoreRange); OS_FIND_EXPORT(coreinit_handle, ICInvalidateRange); OS_FIND_EXPORT(coreinit_handle, OSEffectiveToPhysical); OS_FIND_EXPORT(coreinit_handle, __os_snprintf); diff --git a/os_functions.h b/os_functions.h index 6266f97..a94b08a 100644 --- a/os_functions.h +++ b/os_functions.h @@ -123,6 +123,7 @@ extern void (* OSGetArgcArgv)(s32* argc, char*** argv); extern void (* __Exit)(void); extern void (* OSFatal)(const char* msg); extern void (* DCFlushRange)(const void *addr, u32 length); +extern void (* DCStoreRange)(const void *addr, u32 length); extern void (* ICInvalidateRange)(const void *addr, u32 length); extern void* (* OSEffectiveToPhysical)(const void*); extern s32 (* __os_snprintf)(char* s, s32 n, const char * format, ...);