mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-06 14:18:15 +01:00
Add baseheap functions.
This commit is contained in:
parent
2f89fed96c
commit
948f03758a
26
include/coreinit/baseheap.h
Normal file
26
include/coreinit/baseheap.h
Normal file
@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include <wut.h>
|
||||
|
||||
WUT_LIB_HEADER_START
|
||||
|
||||
typedef uint32_t MEMBaseHeapType;
|
||||
typedef void *MEMHeapHandle;
|
||||
|
||||
enum MEMBaseHeapType
|
||||
{
|
||||
MEM_BASE_HEAP_MEM1 = 0,
|
||||
MEM_BASE_HEAP_MEM2 = 1,
|
||||
MEM_BASE_HEAP_FG = 8,
|
||||
};
|
||||
|
||||
MEMBaseHeapType
|
||||
MEMGetArena(MEMHeapHandle handle);
|
||||
|
||||
MEMHeapHandle
|
||||
MEMGetBaseHeapHandle(MEMBaseHeapType type);
|
||||
|
||||
MEMHeapHandle
|
||||
MEMSetBaseHeapHandle(MEMBaseHeapType type,
|
||||
MEMHeapHandle handle);
|
||||
|
||||
WUT_LIB_HEADER_END
|
@ -25,6 +25,11 @@ EXPORT(OSXorAtomic64);
|
||||
EXPORT(OSTestAndClearAtomic64);
|
||||
EXPORT(OSTestAndSetAtomic64);
|
||||
|
||||
// coreinit/baseheap.h
|
||||
EXPORT(MEMGetArena);
|
||||
EXPORT(MEMGetBaseHeapHandle);
|
||||
EXPORT(MEMSetBaseHeapHandle);
|
||||
|
||||
// coreinit/cache.h
|
||||
EXPORT(DCInvalidateRange);
|
||||
EXPORT(DCFlushRange);
|
||||
|
Loading…
Reference in New Issue
Block a user