From d8f1841846b015fdbee8921ea0378ef455c1a4bd Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 23 Dec 2025 15:10:49 +0100 Subject: x86_64/memory: increase mapper log verbosity --- arch/x86_64/src/memory/kernel_mapper.cpp | 8 +++++--- 1 file 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); -- cgit v1.2.3