mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:35:07 +00:00
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:
parent
a27716846f
commit
86fa5d71c0
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue