aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kapi/memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kapi/memory.cpp')
-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();