Initial commit - slab allocator, kmalloc, other re
factors
This commit is contained in:
parent
1dd7b8b07f
commit
4e40a040dd
39 changed files with 863 additions and 412 deletions
|
|
@ -1,10 +1,7 @@
|
|||
#include "error.h"
|
||||
#include <stdint.h>
|
||||
void kernel_heap_init();
|
||||
|
||||
void heap_free(uint64_t *addr);
|
||||
uint64_t *heap_alloc();
|
||||
void _kmalloc_init(void);
|
||||
|
||||
void *kmalloc(uint64_t size);
|
||||
void kfree(void *addr);
|
||||
|
||||
#define KERNEL_HEAP_SIZE 0x10000000
|
||||
kstatus kfree(void *addr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue