Kernel: Rewrite x86_64 page tables to use HHDM instead of kmalloc

This allows page tables to not crash the kernel once kmalloc runs out of
its (limited) static memory.
This commit is contained in:
2024-10-14 11:40:30 +03:00
parent f0b18da881
commit 8fd0162393
4 changed files with 423 additions and 143 deletions

View File

@@ -43,7 +43,8 @@ namespace Kernel
};
public:
static void initialize();
static void initialize_pre_heap();
static void initialize_post_heap();
static PageTable& kernel();
static PageTable& current() { return *reinterpret_cast<PageTable*>(Processor::get_current_page_table()); }