diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-01 13:02:14 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-01 13:02:14 +0000 |
| commit | b0d917bc8ad95e282f25949c489dfc1c06b91b83 (patch) | |
| tree | 7ed161960277acc397f43fd02f07e0bb75b863d9 /arch/x86_64/include | |
| parent | defb727b2d0ac902e10e9736440779495b8b51a9 (diff) | |
| download | teachos-b0d917bc8ad95e282f25949c489dfc1c06b91b83.tar.xz teachos-b0d917bc8ad95e282f25949c489dfc1c06b91b83.zip | |
Adjust temporary page to changes
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/memory/paging/temporary_page.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86_64/include/arch/memory/paging/temporary_page.hpp b/arch/x86_64/include/arch/memory/paging/temporary_page.hpp index ae806c8..0293dd9 100644 --- a/arch/x86_64/include/arch/memory/paging/temporary_page.hpp +++ b/arch/x86_64/include/arch/memory/paging/temporary_page.hpp @@ -3,12 +3,12 @@ #include "arch/memory/allocator/physical_frame.hpp" #include "arch/memory/allocator/tiny_frame_allocator.hpp" +#include "arch/memory/paging/page_mapper.hpp" #include "arch/memory/paging/page_table.hpp" #include "arch/memory/paging/virtual_page.hpp" namespace teachos::arch::memory::paging { - /** * @brief * @@ -35,7 +35,7 @@ namespace teachos::arch::memory::paging * * @param frame */ - auto zero_entries() -> void; + auto zero_entries(active_page_table & active_table) -> void; private: /** @@ -44,13 +44,13 @@ namespace teachos::arch::memory::paging * @param frame * @return virtual_address */ - auto map_to_frame(allocator::physical_frame frame) -> virtual_address; + auto map_to_frame(allocator::physical_frame frame, active_page_table & active_table) -> virtual_address; /** * @brief * */ - auto unmap() -> void; + auto unmap(active_page_table & active_table) -> void; /** * @brief @@ -58,7 +58,7 @@ namespace teachos::arch::memory::paging * @param frame * @return page_table_handle */ - auto map_table_frame(allocator::physical_frame frame) -> page_table_handle; + auto map_table_frame(allocator::physical_frame frame, active_page_table & active_table) -> page_table_handle; virtual_page page; allocator::tiny_frame_allocator allocator; |
