Modestus Moon OS
R4
CS 450 project
|
Go to the source code of this file.
Data Structures | |
struct | header |
struct | footer |
struct | index_entry |
struct | index_table |
struct | heap |
Macros | |
#define | TABLE_SIZE 0x1000 |
#define | KHEAP_BASE 0xD000000 |
#define | KHEAP_MIN 0x10000 |
#define | KHEAP_SIZE 0x1000000 |
Functions | |
u32int | _kmalloc (u32int size, int align, u32int *phys_addr) |
u32int | kmalloc (u32int size) |
u32int | kfree () |
void | init_kheap () |
u32int | alloc (u32int size, heap *hp, int align) |
heap * | make_heap (u32int base, u32int max, u32int min) |
#define KHEAP_BASE 0xD000000 |
Definition at line 6 of file heap.h.
Referenced by alloc(), and init_paging().
#define KHEAP_MIN 0x10000 |
Definition at line 7 of file heap.h.
Referenced by alloc(), and init_paging().
#define KHEAP_SIZE 0x1000000 |
Definition at line 8 of file heap.h.
Referenced by init_paging().
Definition at line 24 of file heap.c.
References alloc(), page_entry::frameaddr, get_page(), and phys_alloc_addr.
Referenced by get_page(), init_paging(), and kmalloc().
Definition at line 57 of file heap.c.
References base, KHEAP_BASE, KHEAP_MIN, no_warn, and serial_println().
Referenced by _kmalloc().
void init_kheap | ( | ) |
u32int kfree | ( | ) |
Definition at line 52 of file heap.c.
References _kmalloc().
Referenced by init_paging(), initHeap(), make_heap(), and sys_alloc_mem().
Definition at line 71 of file heap.c.
References kmalloc(), and no_warn.
Referenced by init_paging().