From a089d09322a71e78b73c36c2b82b6c31756d9136 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Wed, 12 Apr 2023 19:10:39 -0400 Subject: [PATCH] add todo lol --- mem/{early.c => buddy.c} | 1 + 1 file changed, 1 insertion(+) rename mem/{early.c => buddy.c} (99%) diff --git a/mem/early.c b/mem/buddy.c similarity index 99% rename from mem/early.c rename to mem/buddy.c index d43132a..a13c31c 100644 --- a/mem/early.c +++ b/mem/buddy.c @@ -244,6 +244,7 @@ void buddy_free(struct mem_region_header *head, paddr_t paddr) } /* 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); flist->len = head->usable_len >> depth; flist->depth = depth;