2016-07-06 21:48:54 +02:00
|
|
|
#pragma once
|
|
|
|
#include <wut.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \defgroup coreinit_memory Memory
|
|
|
|
* \ingroup coreinit
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-05-30 14:11:57 +02:00
|
|
|
typedef enum OSMemoryType
|
|
|
|
{
|
|
|
|
OS_MEM1 = 1,
|
|
|
|
OS_MEM2 = 2,
|
|
|
|
} OSMemoryType;
|
|
|
|
|
2016-07-06 21:48:54 +02:00
|
|
|
void *
|
|
|
|
OSBlockMove(void *dst,
|
|
|
|
const void *src,
|
|
|
|
uint32_t size,
|
|
|
|
BOOL flush);
|
|
|
|
|
|
|
|
void *
|
|
|
|
OSBlockSet(void *dst,
|
|
|
|
uint8_t val,
|
|
|
|
uint32_t size);
|
|
|
|
|
2018-05-30 14:11:57 +02:00
|
|
|
void *
|
2016-11-07 06:10:42 +01:00
|
|
|
OSAllocFromSystem(uint32_t size,
|
|
|
|
int align);
|
|
|
|
|
|
|
|
void
|
|
|
|
OSFreeToSystem(void *ptr);
|
|
|
|
|
2018-05-30 14:11:57 +02:00
|
|
|
BOOL
|
|
|
|
OSGetForegroundBucket(uint32_t *outAddr,
|
|
|
|
uint32_t *outSize);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
OSGetForegroundBucketFreeArea(uint32_t *outAddr,
|
|
|
|
uint32_t *outSize);
|
|
|
|
|
|
|
|
int
|
|
|
|
OSGetMemBound(OSMemoryType type,
|
|
|
|
uint32_t *outAddr,
|
|
|
|
uint32_t *outSize);
|
|
|
|
|
2016-07-06 21:48:54 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** @} */
|