potentially got that fixed?

This commit is contained in:
Jonathan Turner 2023-11-29 18:40:08 -05:00
parent 6632d3a2ab
commit f433f56d3f

View File

@ -154,7 +154,7 @@
} }
void print_holes(node* umem_head) { node* print_holes(node* umem_head) {
if (umem_head == NULL) { if (umem_head == NULL) {
kprint("Holes list is Empty"); kprint("Holes list is Empty");
return; return;
@ -170,9 +170,10 @@ 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 {
hole = add_node( hole, umem_head->base_register+umem_head->limit_register, -1, true, ++hole_ids); hole = add_node( hole, umem_head->base_register+umem_head->limit_register, 0x100000, true, ++hole_ids);
} }
umem_head = umem_head->next; umem_head = umem_head->next;
} }
print_list(hole, false); print_list(hole, false);
return hole;
} }