Completed kheap and added some parts of paging.h
This commit is contained in:
@@ -60,5 +60,12 @@ typedef struct {
|
||||
heap_t *create_heap(uint32_t start, uint32_t end, uint32_t max, uint8_t supervisor, uint8_t readonly);
|
||||
void *alloc(uint32_t size, uint8_t page_align, heap_t *heap);
|
||||
void free(void *p, heap_t *heap);
|
||||
// Public heap functions
|
||||
uint32_t kmalloc_init(uint32_t sz, int32_t align, uint32_t *phys);
|
||||
void kfree(void *p);
|
||||
uint32_t kmalloc_a(uint32_t sz);
|
||||
uint32_t kmalloc_p(uint32_t sz, uint32_t *phys);
|
||||
uint32_t kmalloc_ap(uint32_t sz, uint32_t *phys);
|
||||
uint32_t kmalloc(uint32_t sz);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user