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).
This commit is contained in:
Liav A 2021-09-18 14:44:27 +03:00 committed by Idan Horowitz
parent a27716846f
commit 86fa5d71c0
Notes: sideshowbarker 2024-07-18 03:43:37 +09:00

View file

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