diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-11 14:16:18 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-11 14:16:18 +0000 |
| commit | 0ca0c40c197c214288ad2ed1179ae9ae28c50194 (patch) | |
| tree | df2127d7e6a39de96c70c2458140dee75ae3c49e /arch/x86_64/src/kernel/main.cpp | |
| parent | 0f3c5c2bc02d7aa48f8edbe42a67dd91821032b7 (diff) | |
| download | teachos-0ca0c40c197c214288ad2ed1179ae9ae28c50194.tar.xz teachos-0ca0c40c197c214288ad2ed1179ae9ae28c50194.zip | |
Improve calculation of kernel end and start address.
Diffstat (limited to 'arch/x86_64/src/kernel/main.cpp')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index ea1a157..f9b252d 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -25,9 +25,11 @@ namespace teachos::arch::kernel memory::cpu::set_efer_bit(memory::cpu::efer_flags::NXE); memory::paging::kernel_mapper kernel(allocator, memory_information); - kernel.remap_kernel(); + auto & active_table = kernel.remap_kernel(); video::vga::text::write("Kernel remapping successfull", video::vga::text::common_attributes::green_on_black); + // TODO: Map heap virtual pages with active table + /* size_t address = 42 * memory::paging::PAGE_TABLE_ENTRY_COUNT * memory::paging::PAGE_TABLE_ENTRY_COUNT * memory::allocator::PAGE_FRAME_SIZE; // 42th P3 entry |
