diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-28 13:32:09 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-28 13:32:09 +0000 |
| commit | e5925df93411429340d2887594004aaa690d2ef5 (patch) | |
| tree | a24bc2f7aaf897fead13e151a5c155b597664f16 /arch/x86_64/src/kernel | |
| parent | efcb913196ccf0386a557e8c1053c430e5896179 (diff) | |
| download | teachos-e5925df93411429340d2887594004aaa690d2ef5.tar.xz teachos-e5925df93411429340d2887594004aaa690d2ef5.zip | |
Adjust constant and make all possible variables const
Diffstat (limited to 'arch/x86_64/src/kernel')
| -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 5186c21..e067b48 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -16,12 +16,12 @@ namespace teachos::arch::kernel video::vga::text::cursor(false); video::vga::text::write("TeachOS is starting up...", video::vga::text::common_attributes::green_on_black); - auto memory_information = memory::multiboot::read_multiboot2(); + auto const memory_information = memory::multiboot::read_multiboot2(); memory::allocator::area_frame_allocator allocator(memory_information); size_t address = 42 * memory::paging::PAGE_TABLE_ENTRY_COUNT * memory::paging::PAGE_TABLE_ENTRY_COUNT * memory::allocator::PAGE_FRAME_SIZE; // 42th P3 entry - auto page = memory::paging::virtual_page::containing_address(address); + auto const page = memory::paging::virtual_page::containing_address(address); memory::paging::map_next_free_page_to_frame(allocator, page, 0U); auto optional_frame = memory::paging::translate_page(page); video::vga::text::newline(); |
