Go to the source code of this file.
|
struct | GMemBlock |
| A structure that holds information about memory allocation on goddard's heap. More...
|
|
◆ PERM_G_MEM_BLOCK
#define PERM_G_MEM_BLOCK 0xF0 |
◆ TEMP_G_MEM_BLOCK
#define TEMP_G_MEM_BLOCK 0x0F |
◆ GMemBlockTypes
Block list types for GMemBlock.blockType
.
Note that Empty Blocks don't have a specific value.
Enumerator |
---|
G_MEM_BLOCK_FREE | |
G_MEM_BLOCK_USED | |
◆ gd_add_mem_to_heap()
Add memory of size
at addr
to the goddard heap for later allocation.
- Returns
GMemBlock
that contains info about the new heap memory
◆ gd_free_mem()
Free memory allocated on the goddard heap.
- Parameters
-
ptr | pointer to heap allocated memory |
- Returns
- size of memory freed
- Return values
-
0 | ptr did not point to a valid memory block |
◆ gd_request_mem()
void* gd_request_mem |
( |
u32 |
size, |
|
|
u8 |
permanence |
|
) |
| |
Request a pointer to goddard heap memory of at least size
and of the same permanence
.
- Returns
- pointer to heap
- Return values
-
NULL | could not fulfill the request |
◆ init_mem_block_lists()
◆ mem_stats()
Print summary information about all used, free, and empty GMemBlock
s.