From 3614b5a702af1aba1a0597fae4a5025d3fb9c413 Mon Sep 17 00:00:00 2001 From: red031000 Date: Thu, 11 Jun 2020 19:52:48 +0100 Subject: arm7 OS_alloc --- arm7/lib/include/OS_alloc.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 arm7/lib/include/OS_alloc.h (limited to 'arm7/lib/include/OS_alloc.h') diff --git a/arm7/lib/include/OS_alloc.h b/arm7/lib/include/OS_alloc.h new file mode 100644 index 00000000..bf18da0f --- /dev/null +++ b/arm7/lib/include/OS_alloc.h @@ -0,0 +1,17 @@ +#ifndef POKEDIAMOND_ARM7_OS_ALLOC_H +#define POKEDIAMOND_ARM7_OS_ALLOC_H + +#include "nitro/OS_alloc_shared.h" +#include "OS_arena.h" + +Cell *DLAddFront(Cell* list, Cell* cell); +Cell *DLExtract(Cell* list, Cell* cell); +Cell *DLInsert(Cell *original, Cell *inserted); +void* OS_AllocFromHeap(OSArenaId id, OSHeapHandle heap, u32 size); +void OS_FreeToHeap(OSArenaId id, OSHeapHandle heap, void* ptr); +OSHeapHandle OS_SetCurrentHeap(OSArenaId id, OSHeapHandle heap); +void *OS_InitAlloc(OSArenaId id, void *arenaStart, void *arenaEnd, s32 maxHeaps); +OSHeapHandle OS_CreateHeap(OSArenaId id, void *start, void *end); +s32 OS_CheckHeap(OSArenaId id, OSHeapHandle heap); + +#endif //POKEDIAMOND_ARM7_OS_ALLOC_H -- cgit v1.2.3