mesa want you to work, so mesa can sleep...
This commit is contained in:
parent
4673d709e1
commit
f8ca8e1f74
@ -257,25 +257,25 @@ 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);
|
print_list(umem_head, false);
|
||||||
print_list(get_holes(umem_head));
|
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);
|
print_list(umem_head, false);
|
||||||
print_list(get_holes(umem_head));
|
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);
|
print_list(umem_head, false);
|
||||||
print_list(get_holes(umem_head));
|
print_list(get_holes(umem_head), false);
|
||||||
|
|
||||||
// Display 5
|
// Display 5
|
||||||
temp = find_id(4);
|
temp = find_id(umem_head, 4);
|
||||||
node* previous = temp->previous;
|
node* previous = temp->previous;
|
||||||
previous->next = temp->next;
|
previous->next = temp->next;
|
||||||
free_node(temp);
|
free_node(temp);
|
||||||
@ -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);
|
print_list(umem_head, false);
|
||||||
print_list(get_holes(umem_head));
|
print_list(get_holes(umem_head), false);
|
||||||
kprint("Jonathan Turner - S02");
|
kprint("Jonathan Turner - S02");
|
||||||
}
|
}
|
Reference in New Issue
Block a user