From 796ce76185b00feb86f6b4f738ac6f953c247116 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 16 Mar 2026 22:30:39 +0100 Subject: arch/x86_64: begin new allocator draft --- arch/x86_64/src/memory/higher_half_mapper.cpp | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 arch/x86_64/src/memory/higher_half_mapper.cpp (limited to 'arch/x86_64/src/memory') diff --git a/arch/x86_64/src/memory/higher_half_mapper.cpp b/arch/x86_64/src/memory/higher_half_mapper.cpp new file mode 100644 index 0000000..9fe3c89 --- /dev/null +++ b/arch/x86_64/src/memory/higher_half_mapper.cpp @@ -0,0 +1,29 @@ +#include "arch/memory/higher_half_mapper.hpp" + +#include "kapi/memory.hpp" + +#include + +namespace arch::memory +{ + + auto higher_half_mapper::map(kapi::memory::page page, kapi::memory::frame frame, flags flags) -> std::byte * + { + static_cast(page); + static_cast(frame); + static_cast(flags); + return nullptr; + } + + auto higher_half_mapper::unmap(kapi::memory::page page) -> void + { + static_cast(page); + } + + auto higher_half_mapper::try_unmap(kapi::memory::page page) noexcept -> bool + { + static_cast(page); + return false; + } + +} // namespace arch::memory \ No newline at end of file -- cgit v1.2.3