From 0ba991750314310a5e53b0d8135aef5b1352b261 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 20 Nov 2019 22:17:48 +0100 Subject: Began two-stage hdd bootloader and os installer --- src/kernel/paging/paging.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kernel/paging') diff --git a/src/kernel/paging/paging.c b/src/kernel/paging/paging.c index a6bf5cc..fa0610e 100644 --- a/src/kernel/paging/paging.c +++ b/src/kernel/paging/paging.c @@ -1,6 +1,7 @@ #include #include #include +#include uint32_t page_directory[1024] __attribute__((aligned(4096))); uint32_t page_tables[1024][1024] __attribute__((aligned(4096))); @@ -17,6 +18,7 @@ void paging_install() { } // TODO: Calculate max memory + // paging_set_present(0, memory_get_all() >> 2); paging_set_present(0, 0x1000000); paging_set_used(0, ((uint32_t) ASM_KERNEL_END >> 12) + 1); -- cgit v1.2.3