fixed print list
This commit is contained in:
parent
1e727daa2d
commit
6632d3a2ab
@ -170,8 +170,7 @@ void print_holes(node* umem_head) {
|
|||||||
u32 total = umem_head->base_register+umem_head->limit_register;
|
u32 total = umem_head->base_register+umem_head->limit_register;
|
||||||
hole = add_node( hole, total, next->base_register-total, true, ++hole_ids);
|
hole = add_node( hole, total, next->base_register-total, true, ++hole_ids);
|
||||||
} else {
|
} else {
|
||||||
node *previous = umem_head->previous;
|
hole = add_node( hole, umem_head->base_register+umem_head->limit_register, -1, true, ++hole_ids);
|
||||||
hole = add_node( hole, previous->base_register+previous->limit_register, -1, true, ++hole_ids);
|
|
||||||
}
|
}
|
||||||
umem_head = umem_head->next;
|
umem_head = umem_head->next;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user