From 06fc2c2af5db74ba938a65f72bf505baa5eec23b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 23 Nov 2019 17:45:47 +0100 Subject: Some formatting --- src/kernel/paging/paging.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/kernel/paging/paging.c') diff --git a/src/kernel/paging/paging.c b/src/kernel/paging/paging.c index 7e2ca6b..09cbbc0 100644 --- a/src/kernel/paging/paging.c +++ b/src/kernel/paging/paging.c @@ -19,12 +19,11 @@ void paging_install() { page_directory[i] = ((uint32_t) page_tables[i]) | PD_RW | PD_PRESENT; } - // TODO: Calculate max memory paging_set_present(0, memory_get_all() >> 2); // /4 paging_set_used(0, ((uint32_t) ASM_KERNEL_END >> 12) + 1); // /4096 paging_enable(); - serial_write_dec(memory_get_all() / 1024); + serial_write_dec(memory_get_all() >> 10); vga_log("Installed paging", 5); } -- cgit v1.2.3