From 86fa5d71c06134b5d0a23ec2d9a8eb495bd771f9 Mon Sep 17 00:00:00 2001 From: Liav A Date: Sat, 18 Sep 2021 14:44:27 +0300 Subject: Kernel/Memory: Add more super pages to satisfy contiguous allocations When testing the RTL8168 driver, it seems we can't allocate super pages anymore. Either we expand the super pages range, or find a solution to dynamically expand the range (or let drivers utilize other ranges). --- Kernel/Memory/MemoryManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kernel/Memory/MemoryManager.cpp b/Kernel/Memory/MemoryManager.cpp index dcbb9be71e..dcf90d571b 100644 --- a/Kernel/Memory/MemoryManager.cpp +++ b/Kernel/Memory/MemoryManager.cpp @@ -38,7 +38,9 @@ extern multiboot_module_entry_t multiboot_copy_boot_modules_array[16]; extern size_t multiboot_copy_boot_modules_count; // Treat the super pages as logically separate from .bss -__attribute__((section(".super_pages"))) static u8 super_pages[1 * MiB]; +// FIXME: Find a solution so we don't need to expand this range each time +// we are in a situation too many drivers try to allocate super pages. +__attribute__((section(".super_pages"))) static u8 super_pages[4 * MiB]; namespace Kernel::Memory { -- cgit v1.2.3