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:
Michael Shaw 2023-05-10 17:59:46 -04:00
commit 4e36cfd90b
6 changed files with 430 additions and 42 deletions

View file

@ -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;