aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/paging
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/memory/paging')
-rw-r--r--arch/x86_64/src/memory/paging/temporary_page.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/x86_64/src/memory/paging/temporary_page.cpp b/arch/x86_64/src/memory/paging/temporary_page.cpp
index 7b065ab..5f760a5 100644
--- a/arch/x86_64/src/memory/paging/temporary_page.cpp
+++ b/arch/x86_64/src/memory/paging/temporary_page.cpp
@@ -4,6 +4,14 @@
namespace teachos::arch::memory::paging
{
+ auto temporary_page::map_table_frame(allocator::physical_frame frame,
+ active_page_table & active_table) -> page_table_handle
+ {
+ page_table_handle handle{reinterpret_cast<page_table *>(map_to_frame(frame, active_table)),
+ page_table_handle::LEVEL1};
+ return handle;
+ }
+
auto temporary_page::map_to_frame(allocator::physical_frame frame,
active_page_table & active_table) -> virtual_address
{
@@ -19,14 +27,6 @@ namespace teachos::arch::memory::paging
active_table.unmap_page(allocator, page);
}
- auto temporary_page::map_table_frame(allocator::physical_frame frame,
- active_page_table & active_table) -> page_table_handle
- {
- page_table_handle handle{reinterpret_cast<page_table *>(map_to_frame(frame, active_table)),
- page_table_handle::LEVEL1};
- return handle;
- }
-
auto temporary_page::zero_entries(active_page_table & active_table) -> void
{
auto frame = allocator.allocate_frame();