aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/page_table.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-01-16 13:36:38 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-01-16 13:36:38 +0100
commit7d6f0ed063790042a808f4bf07c50d308b3f2de4 (patch)
tree1a2e1c4ed7e2f3d8e6cdcfb012e554d1a4eb1e5a /arch/x86_64/src/memory/page_table.cpp
parent9750405757396d006ab6992fb93baf414b3e2ae8 (diff)
downloadkernel-7d6f0ed063790042a808f4bf07c50d308b3f2de4.tar.xz
kernel-7d6f0ed063790042a808f4bf07c50d308b3f2de4.zip
chore: restructure namespaces
Diffstat (limited to 'arch/x86_64/src/memory/page_table.cpp')
-rw-r--r--arch/x86_64/src/memory/page_table.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/x86_64/src/memory/page_table.cpp b/arch/x86_64/src/memory/page_table.cpp
index 2de099d..26cdd29 100644
--- a/arch/x86_64/src/memory/page_table.cpp
+++ b/arch/x86_64/src/memory/page_table.cpp
@@ -1,4 +1,4 @@
-#include "x86_64/memory/page_table.hpp"
+#include "arch/memory/page_table.hpp"
#include "kapi/memory.hpp"
@@ -9,7 +9,7 @@
#include <optional>
#include <utility>
-namespace teachos::memory::x86_64
+namespace arch::memory
{
auto page_table::entry::clear() noexcept -> void
@@ -44,16 +44,16 @@ namespace teachos::memory::x86_64
return *this;
}
- auto page_table::entry::frame() const noexcept -> std::optional<struct frame>
+ auto page_table::entry::frame() const noexcept -> std::optional<kapi::memory::frame>
{
if (present())
{
- return frame::containing(physical_address{m_raw & frame_number_mask});
+ return kapi::memory::frame::containing(kapi::memory::physical_address{m_raw & frame_number_mask});
}
return std::nullopt;
}
- auto page_table::entry::frame(struct frame frame, flags flags) noexcept -> void
+ auto page_table::entry::frame(kapi::memory::frame frame, flags flags) noexcept -> void
{
m_raw = (frame.start_address().raw() | static_cast<std::uint64_t>(flags));
};
@@ -79,4 +79,4 @@ namespace teachos::memory::x86_64
[](auto const & entry) -> auto { return entry.all_flags() == entry::flags::empty; });
}
-} // namespace teachos::memory::x86_64
+} // namespace arch::memory