add todo lol
This commit is contained in:
parent
758d120903
commit
a089d09322
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||||
Loading…
Reference in a new issue