add todo lol

This commit is contained in:
Michael Shaw 2023-04-12 19:10:39 -04:00
commit a089d09322

View file

@ -244,6 +244,7 @@ void buddy_free(struct mem_region_header *head, paddr_t paddr)
} }
/* add the region to the free list */ /* add the region to the free list */
/* TODO: Replace with binary tree traversal */
struct buddy_free_list *flist = (struct buddy_free_list *)(buddy_get_slab(head, depth, n) | hhdm_start); struct buddy_free_list *flist = (struct buddy_free_list *)(buddy_get_slab(head, depth, n) | hhdm_start);
flist->len = head->usable_len >> depth; flist->len = head->usable_len >> depth;
flist->depth = depth; flist->depth = depth;