mirror of
https://github.com/devkitPro/wut.git
synced 2026-07-19 08:41:32 -05:00
coreinit: Add some memory functions.
Adds OSGetForegroundBucket, OSGetForegroundBucketFreeArea, OSGetMemBound.
This commit is contained in:
parent
3e117fe667
commit
42ac732b2e
|
|
@ -266,6 +266,9 @@ OSBlockMove
|
|||
OSBlockSet
|
||||
OSAllocFromSystem
|
||||
OSFreeToSystem
|
||||
OSGetForegroundBucket
|
||||
OSGetForegroundBucketFreeArea
|
||||
OSGetMemBound
|
||||
|
||||
// coreinit/memorymap.h
|
||||
OSEffectiveToPhysical
|
||||
|
|
|
|||
|
|
@ -12,6 +12,12 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum OSMemoryType
|
||||
{
|
||||
OS_MEM1 = 1,
|
||||
OS_MEM2 = 2,
|
||||
} OSMemoryType;
|
||||
|
||||
void *
|
||||
OSBlockMove(void *dst,
|
||||
const void *src,
|
||||
|
|
@ -23,13 +29,26 @@ OSBlockSet(void *dst,
|
|||
uint8_t val,
|
||||
uint32_t size);
|
||||
|
||||
void*
|
||||
void *
|
||||
OSAllocFromSystem(uint32_t size,
|
||||
int align);
|
||||
|
||||
void
|
||||
OSFreeToSystem(void *ptr);
|
||||
|
||||
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);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user