diff --git a/Part3/09_memory/kernel/kernel.c b/Part3/09_memory/kernel/kernel.c index 9c66e16..8b94a7f 100644 --- a/Part3/09_memory/kernel/kernel.c +++ b/Part3/09_memory/kernel/kernel.c @@ -250,16 +250,16 @@ void begin_output_example() { umem_head = add_node( umem_head, 0x15000, 0x7FF, true, 3); umem_head = add_node( umem_head, 0x22000, 0x1FFF, true, 4); - // // Display 2 - // print_memory(umem_head, holes_head); - // node* temp = umem_head->next; - // free_node(umem_head); - // umem_head = temp; - // umem_head->previous = NULL; - // print_memory(umem_head, holes_head); - // // print_list(umem_head, false); - // // print_list(get_holes(umem_head), false); - // + // Display 2 + print_memory(umem_head, holes_head); + node* temp = umem_head->next; + free_node(umem_head); + umem_head = temp; + umem_head->previous = NULL; + print_memory(umem_head, holes_head); + // print_list(umem_head, false); + // print_list(get_holes(umem_head), false); + // // Display 3 // temp = get_tail(umem_head); // free_node(temp);