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/arch/memory/paging/page_mapper.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/x86_64/include/arch/memory/paging/page_mapper.hpp b/arch/x86_64/include/arch/memory/paging/page_mapper.hpp
index fcaba26..5960aaf 100644
--- a/arch/x86_64/include/arch/memory/paging/page_mapper.hpp
+++ b/arch/x86_64/include/arch/memory/paging/page_mapper.hpp
@@ -1,6 +1,7 @@
#ifndef TEACHOS_ARCH_X86_64_MEMORY_PAGING_PAGE_MAPPER_HPP
#define TEACHOS_ARCH_X86_64_MEMORY_PAGING_PAGE_MAPPER_HPP
+#include "arch/memory/allocator/area_frame_allocator.hpp"
#include "arch/memory/paging/virtual_page.hpp"
#include <optional>
@@ -32,8 +33,16 @@ namespace teachos::arch::memory::paging
*/
auto translate_address(std::size_t virtual_address) -> std::optional<std::size_t>;
+ /**
+ * @brief TODO
+ *
+ * @param allocator
+ * @param page
+ * @param frame
+ * @param flags
+ */
auto map_page_to_frame(memory::allocator::area_frame_allocator & allocator, const virtual_page & page,
- const memory::allocator::physical_frame & frame, entry::bitset flags) -> void
+ const memory::allocator::physical_frame & frame, entry::bitset flags) -> void;
} // namespace teachos::arch::memory::paging
#endif \ No newline at end of file