]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Removed some logging
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Tue, 28 Feb 2023 01:34:35 +0000 (02:34 +0100)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Tue, 28 Feb 2023 01:34:35 +0000 (02:34 +0100)
kernel/src/kernel.cpp

index 3933a160f95087110d99277bf350056e3b4aafb1..e5e5de91986734e3df3b0ef48e5e211db6fbc99d 100644 (file)
@@ -121,9 +121,6 @@ extern "C" void kmain(unsigned long magic, os::phys_ptr<const multiboot2::info_s
                }
        }
 
-       os::print("RAM:\n");
-       os::paging::page_allocator.print_all();
-
        {
                os::isr_info isr_info[32];
                for (size_t i = 0; i < sizeof(isr_info) / sizeof(isr_info[0]); i++) {
@@ -167,7 +164,6 @@ extern "C" void kmain(unsigned long magic, os::phys_ptr<const multiboot2::info_s
        // Unmap low RAM, and free corresponding page.
        PML4T.contents[0].P = false;
        os::paging::page_allocator.deallocate({.ptr = os::phys_ptr<os::paging::page>(get_base_address(PML4T.contents[0]).get_phys_addr()), .size = 1});
-       os::paging::page_allocator.print_all();
        // Load test-module elf file:
        const os::elf::header elf_header = *os::phys_ptr<os::elf::header>(test_module.start_address.get_phys_addr());
 
@@ -270,13 +266,6 @@ extern "C" void kmain(unsigned long magic, os::phys_ptr<const multiboot2::info_s
 
        asm volatile("invlpg (%0)" ::"r" (0x1000) : "memory");
 
-       os::paging::on_all_pages(PML4T, [](os::paging::page* virt, os::phys_ptr<os::paging::page> phys, std::size_t size) {
-               if (std::uint64_t(virt) >= 0xFFFF'8000'0000'0000) {
-                       return;
-               }
-               os::print("{}->{} ({})\n", std::uint64_t(virt), std::uint64_t(phys.get_phys_addr()), size);
-       });
-
        os::print("Loading ring 3 interrupts stack.\n");
        os::set_ring0_stack(TSS, std::uint64_t(&interrupt_stack_top));
        os::print("Loading TSS.\n");