This commit is contained in:
Jonathan Turner 2023-11-29 21:02:33 -05:00
parent 3deda12551
commit 874866537a

View File

@ -177,21 +177,21 @@ void print_memory(node *umem_head, node *hole_head) {
} }
u32 total_allocated = total_memory - free_memory; u32 total_allocated = total_memory - free_memory;
total_memory = (total_memory+1)/(0x400); total_memory = ((total_memory+1)-64)/(0x400);
char a[16]; char a[16];
int_to_ascii( total_memory, a, 16); int_to_ascii( total_memory, a, 16);
kprint("Total Physical Memory: "); kprint("\nTotal Physical Memory: ");
kprint(a); kprint(a);
kprint("kb\n"); kprint("kb\n");
free_memory = (free_memory+1)/(0x400); free_memory = ((free_memory+1)-64)/(0x400);
char b[16]; char b[16];
int_to_ascii( free_memory, b, 16); int_to_ascii( free_memory, b, 16);
kprint("Total Free: "); kprint("Total Free: ");
kprint(b); kprint(b);
kprint("kb\n"); kprint("kb\n");
total_allocated = (total_allocated+1)/(0x400); total_allocated = ((total_allocated+1)-64)/(0x400);
char c[16]; char c[16];
int_to_ascii( total_allocated, c, 16); int_to_ascii( total_allocated, c, 16);
kprint("Total Allocated: "); kprint("Total Allocated: ");