this better not be it.

This commit is contained in:
Jonathan Turner 2023-11-29 20:43:19 -05:00
parent ec629f31e2
commit 54f2ba6c6a

View File

@ -176,14 +176,37 @@ void print_memory(node *umem_head, node *hole_head) {
num_of_gaps++; num_of_gaps++;
} }
char c[16]; char a[16];
hex_to_ascii( total_memory/1024, c, 16); hex_to_ascii( total_memory/1024, a, 16);
kprint("Total Physical Memory: "); kprint("Total Physical Memory: ");
kprint(a);
kprint("kb\n");
char b[16];
hex_to_ascii( free_memory/1024, b, 16);
kprint("Total Free: ");
kprint(b);
kprint("kb\n");
char c[16];
hex_to_ascii( total_allocated/1024, c, 16);
kprint("Total Allocated: ");
kprint(c); kprint(c);
kprint("kb\n"); kprint("kb\n");
print_list(umem_head, false); char d[16];
print_list(hole_head, false); int_to_ascii( num_of_nodes, d, 16);
kprint("Number of Allocations: ");
kprint(d);
kprint("\n");
char e[16];
hex_to_ascii( num_of_gaps/1024, e, 16);
kprint("Number of Free Gaps: ");
kprint(e);
kprint("\n");
kprint("Start of Memory: 0x10000\nEnd of Memory: 0xFFFFF\n");
} }
node* get_holes(node* umem_head) { node* get_holes(node* umem_head) {