diff options
author | Marvin Borner | 2019-12-14 00:26:49 +0100 |
---|---|---|
committer | Marvin Borner | 2019-12-14 00:26:49 +0100 |
commit | 31aaf43b77bb86d3668f6903ca48ffdb0812cfe2 (patch) | |
tree | 2365961919f39eedd6f9725610e5a9db2c9ba418 /src/kernel/paging/paging.c | |
parent | e7d88df7a5a7e11677b68303a0d05455bf9a60d6 (diff) |
idk
Diffstat (limited to 'src/kernel/paging/paging.c')
-rw-r--r-- | src/kernel/paging/paging.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |