diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-02 11:49:38 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-02 11:49:38 +0000 |
| commit | 5ffe7d69545bf098efdd70f105a5df83304b211a (patch) | |
| tree | 52172b6cefe76644e7348f280a289ab52d974d14 /arch/x86_64/src/kernel | |
| parent | d488a0709c5a2701482130a3d9c972c0b468a1d2 (diff) | |
| download | teachos-5ffe7d69545bf098efdd70f105a5df83304b211a.tar.xz teachos-5ffe7d69545bf098efdd70f105a5df83304b211a.zip | |
Add physical frame iterator and continue implementing kernel mapping.
Diffstat (limited to 'arch/x86_64/src/kernel')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index c89ae44..59e453a 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -3,6 +3,7 @@ #include "arch/exception_handling/assert.hpp" #include "arch/memory/allocator/area_frame_allocator.hpp" #include "arch/memory/multiboot/reader.hpp" +#include "arch/memory/paging/kernel_mapper.hpp" #include "arch/memory/paging/temporary_page.hpp" #include "arch/video/vga/text.hpp" @@ -27,6 +28,9 @@ namespace teachos::arch::kernel memory::paging::temporary_page temp_page{page, allocator}; temp_page.zero_entries(active_table); + memory::paging::kernel_mapper kernel(allocator, memory_information); + kernel.remap_kernel(); + // memory::paging::map_next_free_page_to_frame(allocator, page, 0U); // auto optional_frame = memory::paging::translate_page(page); // video::vga::text::newline(); |
