aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/x86_64/memory/scoped_mapping.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86_64/include/x86_64/memory/scoped_mapping.hpp b/arch/x86_64/include/x86_64/memory/scoped_mapping.hpp
index 99585bc..d4844fb 100644
--- a/arch/x86_64/include/x86_64/memory/scoped_mapping.hpp
+++ b/arch/x86_64/include/x86_64/memory/scoped_mapping.hpp
@@ -53,6 +53,8 @@ namespace teachos::memory::x86_64
//! @note If no frame was ever mapped, this function will panic.
auto unmap() -> void;
+ auto swap(scoped_mapping & other) -> void;
+
private:
page m_page;
frame_allocator * m_allocator;
@@ -60,6 +62,8 @@ namespace teachos::memory::x86_64
std::uint8_t m_allocated;
};
+ auto swap(scoped_mapping & lhs, scoped_mapping & rhs) -> void;
+
} // namespace teachos::memory::x86_64
#endif \ No newline at end of file