From bca36b0c10fcae447c90e211e83987fea28eecdc Mon Sep 17 00:00:00 2001 From: Fabian Imhof Date: Sat, 26 Oct 2024 08:47:26 +0000 Subject: wip --- arch/x86_64/include/arch/boot/pointers.hpp | 2 ++ arch/x86_64/include/arch/memory/paging/page_table.hpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'arch/x86_64/include') diff --git a/arch/x86_64/include/arch/boot/pointers.hpp b/arch/x86_64/include/arch/boot/pointers.hpp index 37840b6..2c42605 100644 --- a/arch/x86_64/include/arch/boot/pointers.hpp +++ b/arch/x86_64/include/arch/boot/pointers.hpp @@ -9,6 +9,8 @@ namespace teachos::arch::boot { extern "C" size_t const multiboot_information_pointer; extern "C" memory::paging::page_table * page_map_level_4; + extern "C" memory::paging::page_table * page_map_level_3; + extern "C" memory::paging::page_table * page_map_level_2; } // namespace teachos::arch::boot #endif diff --git a/arch/x86_64/include/arch/memory/paging/page_table.hpp b/arch/x86_64/include/arch/memory/paging/page_table.hpp index 8250e30..5a072d0 100644 --- a/arch/x86_64/include/arch/memory/paging/page_table.hpp +++ b/arch/x86_64/include/arch/memory/paging/page_table.hpp @@ -46,6 +46,11 @@ namespace teachos::arch::memory::paging */ page_table_handle(page_table * handle, level handle_level); + /** + * @brief Initializes one page table level 3 entry. + */ + void initialize_page_table(); + /** * @brief Set every entry of the page to unused. */ -- cgit v1.2.3