#include "x86_64/memory/paging_root.hpp" #include namespace teachos::memory::x86_64 { namespace { constexpr auto PML_RECURSIVE_BASE = std::uintptr_t{0177777'776'776'776'776'0000uz}; } auto paging_root::get() -> paging_root & { auto pml4_address = std::bit_cast(PML_RECURSIVE_BASE); return *pml4_address; } } // namespace teachos::memory::x86_64