diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-19 14:40:25 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-19 14:40:25 +0000 |
| commit | 675f38d6733fb19b4ffc7e9fbddb93acdd1d1e31 (patch) | |
| tree | 0ec4682c3be47e2ee8250b7608d0464d18ca138d /arch/x86_64/src/kernel/main.cpp | |
| parent | a2fdcea0d7615f8933401e45e0c64a2f618bb730 (diff) | |
| download | teachos-675f38d6733fb19b4ffc7e9fbddb93acdd1d1e31.tar.xz teachos-675f38d6733fb19b4ffc7e9fbddb93acdd1d1e31.zip | |
Seperate allocation and paging code into multiple files as well
Diffstat (limited to 'arch/x86_64/src/kernel/main.cpp')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index c0d4aed..09fc2a2 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -1,7 +1,7 @@ #include "arch/kernel/main.hpp" #include "arch/exception_handling/assert.hpp" -#include "arch/memory/frame_allocator.hpp" +#include "arch/memory/allocator/area_frame_allocator.hpp" #include "arch/memory/multiboot/reader.hpp" #include "arch/video/vga/text.hpp" @@ -18,7 +18,7 @@ namespace teachos::arch::kernel text::write("TeachOS is starting up...", text::common_attributes::green_on_black); auto memory_information = memory::multiboot::read_multiboot2(); - auto allocator = memory::area_frame_allocator(memory_information); + memory::allocator::area_frame_allocator allocator(memory_information); auto last_allocated = allocator.allocate_frame(); auto allocated = last_allocated; |
