diff --git a/Part3/09_memory/kernel/kernel.c b/Part3/09_memory/kernel/kernel.c index 0a806e6..6571925 100644 --- a/Part3/09_memory/kernel/kernel.c +++ b/Part3/09_memory/kernel/kernel.c @@ -154,6 +154,16 @@ } -// void print_holes(node* umem_head) { -// -// } \ No newline at end of file +void print_holes(node* umem_head) { + if (umem_head == NULL) { + kprint("Holes list is Empty"); + } + + + while(umem_head != NULL) { + if (umem_head->base_register - 0x10000 != 0) { + node *hole = add_node( hole, 0x10000, unem_head->base_register-0x10000, true, -1); + print_list(hole); + } + } +} \ No newline at end of file