lib: add rbtree data structure
This also switches the kmalloc allocator over to the new rbtree structure. As a balanced binary search tree, it is much more efficient than the previous method
This commit is contained in:
parent
d3e9b728dc
commit
4e36cfd90b
6 changed files with 430 additions and 42 deletions
|
|
@ -68,7 +68,8 @@ void kmain(void)
|
|||
const uintptr_t one_gb = 0x40000000;
|
||||
char kmem[one_gb] ALIGN(0x1000);
|
||||
mem_early_init(kmem, one_gb);
|
||||
kmalloc_init();
|
||||
|
||||
slabtypes_init();
|
||||
|
||||
struct limine_kernel_file_response *resp = module_req.response;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue