Move away from using recursive mapping for page tables.

Having the HHDM-based mapping allows us to more easily map data into
non-resident processes.
This commit is contained in:
Drew Galbraith 2023-05-30 01:06:01 -07:00
parent c6921b5459
commit f6609983d2
3 changed files with 73 additions and 66 deletions

View file

@ -2,10 +2,7 @@
#include <stdint.h>
void InitPaging();
void InitializePml4(uint64_t pml4_physical_addr);
void AllocatePage(uint64_t addr);
void AllocatePageIfNecessary(uint64_t addr, uint64_t cr3 = 0);
void EnsureResident(uint64_t addr, uint64_t size);
bool PageLoaded(uint64_t addr);