almost there

This commit is contained in:
Jonathan Turner 2023-11-29 22:17:17 -05:00
parent 14738b2ec8
commit c077241845

View File

@ -257,22 +257,22 @@ void begin_output_example() {
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);
// print_list(umem_head, false);
// print_list(get_holes(umem_head), false);
// Display 3
temp = get_tail(umem_head);
free_node(temp);
print_memory(umem_head, holes_head);
print_list(umem_head, false);
print_list(get_holes(umem_head), false);
// print_list(umem_head, false);
// print_list(get_holes(umem_head), false);
// Display 4
umem_head = add_node( umem_head, 0x23000, 0x1FFF, true, 5);
umem_head = add_node( umem_head, 0x25000, 0x3FFF, true, 6);
print_memory(umem_head, holes_head);
print_list(umem_head, false);
print_list(get_holes(umem_head), false);
// print_list(umem_head, false);
// print_list(get_holes(umem_head), false);
// Display 5
temp = find_id(umem_head, 4);
@ -280,8 +280,8 @@ void begin_output_example() {
previous->next = temp->next;
free_node(temp);
print_memory(umem_head, holes_head);
print_list(umem_head, false);
print_list(get_holes(umem_head), false);
// print_list(umem_head, false);
// print_list(get_holes(umem_head), false);
// Display 6
while (umem_head != NULL) {
@ -290,7 +290,7 @@ void begin_output_example() {
umem_head = temp;
}
print_memory(umem_head, holes_head);
print_list(umem_head, false);
print_list(get_holes(umem_head), false);
// print_list(umem_head, false);
// print_list(get_holes(umem_head), false);
kprint("Jonathan Turner - S02");
}