aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-02 19:17:42 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-02 19:17:42 +0100
commit148c54a3d470c6019ebebe1387a7d889a2b8808e (patch)
tree1e280a328ab210816e480161ca19ca2ab4bb4025 /arch/x86_64/src
parent588fe1a3600475bdc312a4fe758d2f1125eb149c (diff)
downloadteachos-148c54a3d470c6019ebebe1387a7d889a2b8808e.tar.xz
teachos-148c54a3d470c6019ebebe1387a7d889a2b8808e.zip
x86_64/memory: introduce frame allocation buffer
Diffstat (limited to 'arch/x86_64/src')
-rw-r--r--arch/x86_64/src/kapi/memory.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86_64/src/kapi/memory.cpp b/arch/x86_64/src/kapi/memory.cpp
index e138641..703b3e1 100644
--- a/arch/x86_64/src/kapi/memory.cpp
+++ b/arch/x86_64/src/kapi/memory.cpp
@@ -5,6 +5,7 @@
#include "x86_64/boot/boot.hpp"
#include "x86_64/boot/ld.hpp"
#include "x86_64/cpu/registers.hpp"
+#include "x86_64/memory/buffered_allocator.hpp"
#include "x86_64/memory/mmu.hpp"
#include "x86_64/memory/page_table.hpp"
#include "x86_64/memory/paging_root.hpp"
@@ -95,7 +96,9 @@ namespace teachos::memory
auto allocator = create_early_frame_allocator();
enable_cpu_protections();
- inject_faux_pml4(allocator);
+
+ auto allocation_buffer = x86_64::buffered_allocator<4>{&allocator};
+ inject_faux_pml4(allocation_buffer);
// paging::kernel_mapper kernel(allocator, memory_information);
// kernel.remap_kernel();