diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-12-23 15:10:49 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-12-23 15:10:49 +0100 |
| commit | d8f1841846b015fdbee8921ea0378ef455c1a4bd (patch) | |
| tree | ff98e33f156fc46159dc047b004f1fe7cb7a6feb /arch/x86_64/src | |
| parent | 686ee85448eeea8e61bb7655bb2fa86da292f0a7 (diff) | |
| download | teachos-d8f1841846b015fdbee8921ea0378ef455c1a4bd.tar.xz teachos-d8f1841846b015fdbee8921ea0378ef455c1a4bd.zip | |
x86_64/memory: increase mapper log verbosity
Diffstat (limited to 'arch/x86_64/src')
| -rw-r--r-- | arch/x86_64/src/memory/kernel_mapper.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86_64/src/memory/kernel_mapper.cpp b/arch/x86_64/src/memory/kernel_mapper.cpp index 50fa325..89b2e83 100644 --- a/arch/x86_64/src/memory/kernel_mapper.cpp +++ b/arch/x86_64/src/memory/kernel_mapper.cpp @@ -71,13 +71,15 @@ namespace teachos::memory::x86_64 auto kernel_mapper::map_section(section_header_type const & section, std::string_view name, page_mapper & mapper) -> void { - kstd::println("[x86_64:MEM] mapping {} ({} bytes)", name, section.size); - auto number_of_pages = (section.size + (PLATFORM_PAGE_SIZE - 1)) / PLATFORM_PAGE_SIZE; - auto linear_start_address = linear_address{section.virtual_load_address}; auto physical_start_address = physical_address{section.virtual_load_address & ~m_kernel_load_base}; + kstd::println("[x86_64:MEM] mapping {}" + "\n {} bytes -> page count: {}" + "\n {} @ {}", + name, section.size, number_of_pages, linear_start_address, physical_start_address); + auto first_page = page::containing(linear_start_address); auto first_frame = frame::containing(physical_start_address); |
