aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/memory.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-16 08:52:08 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-16 08:52:08 +0100
commitb67872907249bed3bad141fae97350959bffb009 (patch)
tree72b940ed7ba66477efbd89866d7c8d482ab9cb09 /kernel/src/memory.cpp
parent4eb11660539e644e491ed5cf7e7918c3dc7baddd (diff)
downloadteachos-b67872907249bed3bad141fae97350959bffb009.tar.xz
teachos-b67872907249bed3bad141fae97350959bffb009.zip
kernel/memory: rename free list allocator
It is not really a free list allocator, but rather a block list allocator, since it contains both free and used blocks in the same list.
Diffstat (limited to 'kernel/src/memory.cpp')
-rw-r--r--kernel/src/memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/src/memory.cpp b/kernel/src/memory.cpp
index 14bedf1..3bc86f3 100644
--- a/kernel/src/memory.cpp
+++ b/kernel/src/memory.cpp
@@ -3,7 +3,7 @@
#include "kapi/memory.hpp"
#include "kapi/system.hpp"
-#include "kernel/memory/free_list_allocator.hpp"
+#include "kernel/memory/block_list_allocator.hpp"
#include "kernel/memory/heap_allocator.hpp"
#include <atomic>
@@ -31,7 +31,7 @@ namespace kernel::memory
constinit null_allocator null_allocator::instance{};
auto constinit active_heap_allocator = std::optional<heap_allocator *>{&null_allocator::instance};
- auto constinit basic_allocator = std::optional<free_list_allocator>{};
+ auto constinit basic_allocator = std::optional<block_list_allocator>{};
} // namespace
auto get_heap_allocator() -> heap_allocator &