Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSAlloc.c File Reference

Functions

static OSHeapCellDLInsert (OSHeapCell *list, OSHeapCell *child)
 
OSHeapCellDLExtract (OSHeapCell *list, OSHeapCell *child)
 
void OSFreeToHeap (OSHeapHandle handle, void *ptr)
 
s32 OSSetCurrentHeap (OSHeapHandle handle)
 
voidOSInitAlloc (void *lo, void *hi, s32 maxHeaps)
 
OSHeapHandle OSCreateHeap (void *start, void *end)
 

Variables

static OSHeapDescriptorHeapArray
 
volatile s32 __OSCurrHeap = -1
 
static s32 NumHeaps
 
static voidArenaStart
 
static voidArenaEnd
 

Function Documentation

◆ DLExtract()

OSHeapCell * DLExtract ( OSHeapCell list,
OSHeapCell child 
)
inline

◆ DLInsert()

static OSHeapCell * DLInsert ( OSHeapCell list,
OSHeapCell child 
)
static

◆ OSCreateHeap()

OSHeapHandle OSCreateHeap ( void start,
void end 
)

◆ OSFreeToHeap()

void OSFreeToHeap ( OSHeapHandle  handle,
void ptr 
)

◆ OSInitAlloc()

void * OSInitAlloc ( void lo,
void hi,
s32  maxHeaps 
)

◆ OSSetCurrentHeap()

s32 OSSetCurrentHeap ( OSHeapHandle  handle)

Variable Documentation

◆ __OSCurrHeap

volatile s32 __OSCurrHeap = -1

◆ ArenaEnd

void* ArenaEnd
static

◆ ArenaStart

void* ArenaStart
static

◆ HeapArray

OSHeapDescriptor* HeapArray
static

◆ NumHeaps

s32 NumHeaps
static