mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +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
Notes:
sideshowbarker
2024-07-18 03:43:37 +09:00
Author: https://github.com/supercomputer7
Commit: 86fa5d71c0
Pull-request: https://github.com/SerenityOS/serenity/pull/10114
Reviewed-by: https://github.com/IdanHo ✅
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