]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Removed the RAM testing: it was useless
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Sat, 7 May 2022 14:34:57 +0000 (16:34 +0200)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Sat, 7 May 2022 14:34:57 +0000 (16:34 +0200)
src/kernel.cpp

index bda3d4f7eb4b7f443b0ea0edeec41ca46d1f6733..e627ac54e5d5f1cbdb570a915438c6fc02d10699 100644 (file)
@@ -23,22 +23,6 @@ extern "C" void kmain(unsigned long magic, os::phys_ptr<const multiboot2::info_s
                page_allocator.deallocate({.ptr = ram_ptr, .size = 256});
        }
 
-       page_allocator.print_all();
-       {
-               os::println("Alloc #1.");
-               auto mem1 = page_allocator.allocate(0x10);
-               page_allocator.print_all();
-               os::println("Alloc #2.");
-               auto mem2 = page_allocator.allocate(0x20);
-               page_allocator.print_all();
-               os::println("Dealloc #1.");
-               page_allocator.deallocate(mem1);
-               page_allocator.print_all();
-               os::println("Dealloc #2.");
-               page_allocator.deallocate(mem2);
-               page_allocator.print_all();
-       }
-
        os::framebuffer framebuffer;
 
        for (auto it = multiboot2::next(info); it->type != multiboot2::info::type_t::end; it = multiboot2::next(it)) {