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)) {