From 64bb52c55297c69e6da286f50c16b76102e84dc6 Mon Sep 17 00:00:00 2001 From: James Benton Date: Wed, 6 Jul 2016 20:48:54 +0100 Subject: [PATCH] Add OSBlockMove and OSBlockSet. --- include/coreinit/memory.h | 30 ++++++++++++++++++++++++++++++ rpl/libcoreinit/exports.h | 4 ++++ 2 files changed, 34 insertions(+) create mode 100644 include/coreinit/memory.h diff --git a/include/coreinit/memory.h b/include/coreinit/memory.h new file mode 100644 index 0000000..fc60f22 --- /dev/null +++ b/include/coreinit/memory.h @@ -0,0 +1,30 @@ +#pragma once +#include + +/** + * \defgroup coreinit_memory Memory + * \ingroup coreinit + * + * @{ + */ + +#ifdef __cplusplus +extern "C" { +#endif + +void * +OSBlockMove(void *dst, + const void *src, + uint32_t size, + BOOL flush); + +void * +OSBlockSet(void *dst, + uint8_t val, + uint32_t size); + +#ifdef __cplusplus +} +#endif + +/** @} */ diff --git a/rpl/libcoreinit/exports.h b/rpl/libcoreinit/exports.h index 9ea7f62..eb883e4 100644 --- a/rpl/libcoreinit/exports.h +++ b/rpl/libcoreinit/exports.h @@ -180,6 +180,10 @@ EXPORT(MEMGetNextListObject); EXPORT(MEMGetPrevListObject); EXPORT(MEMGetNthListObject); +// coreinit/memory.h +EXPORT(OSBlockMove); +EXPORT(OSBlockSet); + // coreinit/messagequeue.h EXPORT(OSInitMessageQueue); EXPORT(OSInitMessageQueueEx);