Add baseheap functions.

This commit is contained in:
James Benton 2016-01-07 13:20:05 +00:00
parent 2f89fed96c
commit 948f03758a
2 changed files with 31 additions and 0 deletions

View 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

View File

@ -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);