aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-13 22:28:50 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-13 23:51:38 +0100
commite284d574ed9237a215d994861cc502452fec11ce (patch)
tree716c9929ef4c0df2b89ab0166c615271aec2374c /arch/x86_64/include
parent7ba274d0838e5cd4e48e85f81557bbb837ed4349 (diff)
downloadteachos-e284d574ed9237a215d994861cc502452fec11ce.tar.xz
teachos-e284d574ed9237a215d994861cc502452fec11ce.zip
kernel/memory: implement basic bitmap allocator
Diffstat (limited to 'arch/x86_64/include')
-rw-r--r--arch/x86_64/include/arch/memory/region_allocator.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/include/arch/memory/region_allocator.hpp b/arch/x86_64/include/arch/memory/region_allocator.hpp
index f391293..1c5885e 100644
--- a/arch/x86_64/include/arch/memory/region_allocator.hpp
+++ b/arch/x86_64/include/arch/memory/region_allocator.hpp
@@ -58,6 +58,9 @@ namespace arch::memory
auto allocate_many(std::size_t count = 1) noexcept
-> std::optional<std::pair<kapi::memory::frame, std::size_t>> override;
+ //! @copydoc kapi::memory::frame_allocator::mark_used
+ auto mark_used(kapi::memory::frame frame) -> void override;
+
//! @copydoc kapi::memory::frame_allocator::release_many
//!
//! @note This implementation will never actually release any frames.