diff options
author | Marvin Borner | 2019-11-20 22:17:48 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-20 22:28:30 +0100 |
commit | 0ba991750314310a5e53b0d8135aef5b1352b261 (patch) | |
tree | acae7106a24b85116cd7119bd239c3d9299f2ba8 /src/kernel/paging | |
parent | 6ca5f1bcec7f0716bad5e1cdd38d41be137fe7e5 (diff) |
Began two-stage hdd bootloader and os installer
Diffstat (limited to 'src/kernel/paging')
-rw-r--r-- | src/kernel/paging/paging.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stdint.h> #include <kernel/paging/paging.h> #include <kernel/system.h> +#include <kernel/lib/lib.h> 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); |