#include <revolution/os.h> OSHeapHandle OSCreateHeap(void* start, void* end);
| start | Heap starting address. |
|---|---|
| end | Heap ending address. |
If successful, returns a new handle to the heap for use by the OSAllocFromHeap and OSFreeToHeap functions. If not, returns -1.
Although this function is provided for the sake of compatibility, we recommend using the MEM library.
Reserves a memory region from start to end to use as a heap. Initializes heap descriptor and free list.
Consumes one entry in the heap array.
The memory allocation services must be initialized by the OSInitAlloc function.
Memory Allocation Functions, OSInitAlloc, OSAllocFromHeap, OSDestroyHeap, OSFreeToHeap
2006/03/01 Initial version.
CONFIDENTIAL