diff options
author | Max <mparisi@stevens.edu> | 2020-09-14 22:13:52 -0400 |
---|---|---|
committer | Max <mparisi@stevens.edu> | 2020-09-14 22:13:52 -0400 |
commit | 1847436ad5b191a5ff00a468768bcbd6c6f1d710 (patch) | |
tree | a6e54f335c06a63b47c2155b2f4d02f7430455d5 /include/SDK | |
parent | 0d864ef8a95e862cb75cc521c188d1e5b58f7823 (diff) |
OSFreeToHeap matching besides SDA offset, OSAllocFromHeap almost matching besides register swap
Diffstat (limited to 'include/SDK')
-rw-r--r-- | include/SDK/OS/OSAlloc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/SDK/OS/OSAlloc.h b/include/SDK/OS/OSAlloc.h index 150a5f8..10edb01 100644 --- a/include/SDK/OS/OSAlloc.h +++ b/include/SDK/OS/OSAlloc.h @@ -6,6 +6,11 @@ extern "C" { #endif typedef struct Cell Cell; +typedef int OSHeapHandle; + +#if 0 +extern volatile OSHeapHandle __OSCurrHeap; // used in OSInitAlloc +#endif struct Cell { Cell* prev; @@ -14,6 +19,8 @@ struct Cell { }; Cell *DLInsert(Cell *original, Cell *inserted); +void *OSAllocFromHeap(OSHeapHandle heap, u32 size); +void OSFreeToHeap(OSHeapHandle heap, void *ptr); #ifdef __cplusplus } |