From 75d31c66a7d8b2bb970c460de5dce481c97f2d02 Mon Sep 17 00:00:00 2001 From: rw-r-r_0644 Date: Sun, 17 Sep 2017 15:48:59 +0200 Subject: [PATCH] Added __OSPhysicalToEffectiveUncached --- os_functions.c | 2 ++ os_functions.h | 1 + 2 files changed, 3 insertions(+) diff --git a/os_functions.c b/os_functions.c index 73737e2..486702d 100644 --- a/os_functions.c +++ b/os_functions.c @@ -90,6 +90,7 @@ 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(void*, __OSPhysicalToEffectiveUncached, const void*); EXPORT_DECL(s32, __os_snprintf, char* s, s32 n, const char * format, ...); EXPORT_DECL(s32 *, __gh_errno_ptr, void); @@ -238,6 +239,7 @@ void InitOSFunctionPointers(void) OS_FIND_EXPORT(coreinit_handle, DCStoreRange); OS_FIND_EXPORT(coreinit_handle, ICInvalidateRange); OS_FIND_EXPORT(coreinit_handle, OSEffectiveToPhysical); + OS_FIND_EXPORT(coreinit_handle, __OSPhysicalToEffectiveUncached); OS_FIND_EXPORT(coreinit_handle, __os_snprintf); OS_FIND_EXPORT(coreinit_handle, __gh_errno_ptr); diff --git a/os_functions.h b/os_functions.h index 859fd85..eaadf82 100644 --- a/os_functions.h +++ b/os_functions.h @@ -128,6 +128,7 @@ 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 void* (* __OSPhysicalToEffectiveUncached)(const void*); extern s32 (* __os_snprintf)(char* s, s32 n, const char * format, ...); extern s32 * (* __gh_errno_ptr)(void);