almost there
This commit is contained in:
parent
14738b2ec8
commit
c077241845
@ -257,22 +257,22 @@ void begin_output_example() {
|
|||||||
umem_head = temp;
|
umem_head = temp;
|
||||||
umem_head->previous = NULL;
|
umem_head->previous = NULL;
|
||||||
print_memory(umem_head, holes_head);
|
print_memory(umem_head, holes_head);
|
||||||
print_list(umem_head, false);
|
// print_list(umem_head, false);
|
||||||
print_list(get_holes(umem_head), false);
|
// print_list(get_holes(umem_head), false);
|
||||||
|
|
||||||
// Display 3
|
// Display 3
|
||||||
temp = get_tail(umem_head);
|
temp = get_tail(umem_head);
|
||||||
free_node(temp);
|
free_node(temp);
|
||||||
print_memory(umem_head, holes_head);
|
print_memory(umem_head, holes_head);
|
||||||
print_list(umem_head, false);
|
// print_list(umem_head, false);
|
||||||
print_list(get_holes(umem_head), false);
|
// print_list(get_holes(umem_head), false);
|
||||||
|
|
||||||
// Display 4
|
// Display 4
|
||||||
umem_head = add_node( umem_head, 0x23000, 0x1FFF, true, 5);
|
umem_head = add_node( umem_head, 0x23000, 0x1FFF, true, 5);
|
||||||
umem_head = add_node( umem_head, 0x25000, 0x3FFF, true, 6);
|
umem_head = add_node( umem_head, 0x25000, 0x3FFF, true, 6);
|
||||||
print_memory(umem_head, holes_head);
|
print_memory(umem_head, holes_head);
|
||||||
print_list(umem_head, false);
|
// print_list(umem_head, false);
|
||||||
print_list(get_holes(umem_head), false);
|
// print_list(get_holes(umem_head), false);
|
||||||
|
|
||||||
// Display 5
|
// Display 5
|
||||||
temp = find_id(umem_head, 4);
|
temp = find_id(umem_head, 4);
|
||||||
@ -280,8 +280,8 @@ void begin_output_example() {
|
|||||||
previous->next = temp->next;
|
previous->next = temp->next;
|
||||||
free_node(temp);
|
free_node(temp);
|
||||||
print_memory(umem_head, holes_head);
|
print_memory(umem_head, holes_head);
|
||||||
print_list(umem_head, false);
|
// print_list(umem_head, false);
|
||||||
print_list(get_holes(umem_head), false);
|
// print_list(get_holes(umem_head), false);
|
||||||
|
|
||||||
// Display 6
|
// Display 6
|
||||||
while (umem_head != NULL) {
|
while (umem_head != NULL) {
|
||||||
@ -290,7 +290,7 @@ void begin_output_example() {
|
|||||||
umem_head = temp;
|
umem_head = temp;
|
||||||
}
|
}
|
||||||
print_memory(umem_head, holes_head);
|
print_memory(umem_head, holes_head);
|
||||||
print_list(umem_head, false);
|
// print_list(umem_head, false);
|
||||||
print_list(get_holes(umem_head), false);
|
// print_list(get_holes(umem_head), false);
|
||||||
kprint("Jonathan Turner - S02");
|
kprint("Jonathan Turner - S02");
|
||||||
}
|
}
|
Reference in New Issue
Block a user