29 #define PERM_G_MEM_BLOCK 0xF0 30 #define TEMP_G_MEM_BLOCK 0x0F Definition: gd_memory.h:23
u32 size
Definition: gd_memory.h:12
void init_mem_block_lists(void)
NULL the various GMemBlock list heads.
Definition: gd_memory.c:234
void mem_stats(void)
Print summary information about all used, free, and empty GMemBlocks.
Definition: gd_memory.c:277
Definition: gd_memory.h:24
struct GMemBlock * gd_add_mem_to_heap(u32, u32, u8)
Add memory of size at addr to the goddard heap for later allocation.
Definition: gd_memory.c:218
u32 gd_free_mem(void *)
Free memory allocated on the goddard heap.
Definition: gd_memory.c:142
A structure that holds information about memory allocation on goddard's heap.
Definition: gd_memory.h:7
u32 addr
Definition: gd_memory.h:10
union GMemBlock::@17 data
GMemBlockTypes
Block list types for GMemBlock.blockType.
Definition: gd_memory.h:22
u8 permFlag
Permanent (upper four bits) or Temporary (lower four bits)
Definition: gd_memory.h:14
unsigned char u8
Definition: ultratypes.h:12
struct GMemBlock * next
Definition: gd_memory.h:16
void * ptr
Definition: gd_memory.h:9
struct GMemBlock * prev
Definition: gd_memory.h:17
u8 blockType
Definition: gd_memory.h:13
unsigned int u32
Definition: ultratypes.h:16
void * gd_request_mem(u32, u8)
Request a pointer to goddard heap memory of at least size and of the same permanence.
Definition: gd_memory.c:168