From 31aaf43b77bb86d3668f6903ca48ffdb0812cfe2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 14 Dec 2019 00:26:49 +0100 Subject: idk --- src/kernel/paging/paging.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/paging/paging.c') diff --git a/src/kernel/paging/paging.c b/src/kernel/paging/paging.c index 6fab537..a43fffc 100644 --- a/src/kernel/paging/paging.c +++ b/src/kernel/paging/paging.c @@ -22,6 +22,7 @@ void paging_install() paging_set_present(0, memory_get_all() >> 2); // /4 paging_set_used(0, ((uint32_t) ASM_KERNEL_END >> 12) + 1); // /4096 + // paging_set_user(0, memory_get_all() >> 2); paging_enable(); @@ -60,7 +61,7 @@ void paging_map(uint32_t phy, uint32_t virt, uint16_t flags) invlpg(virt); } -uint32_t paging_get_physical_addr(uint32_t virt) +uint32_t paging_get_phys(uint32_t virt) { uint32_t pdi = virt >> 22; uint32_t pti = (virt >> 12) & 0x03FF; -- cgit v1.2.3