1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 23:12:08 +00:00

Kernel: Move allocate_unbacked_region_anywhere() to MemoryManager

This didn't need to be in RegionTree, and since it's specific to kernel
VM anyway, let's move it to MemoryManager.
This commit is contained in:
Andreas Kling 2022-04-05 12:40:31 +02:00
parent e0da8da657
commit f8d798b667
5 changed files with 9 additions and 10 deletions

View file

@ -354,7 +354,7 @@ struct KmallocGlobalData {
void enable_expansion()
{
// FIXME: This range can be much bigger on 64-bit, but we need to figure something out for 32-bit.
auto reserved_region = MUST(MM.region_tree().allocate_unbacked_anywhere(64 * MiB, 1 * MiB));
auto reserved_region = MUST(MM.allocate_unbacked_region_anywhere(64 * MiB, 1 * MiB));
expansion_data = KmallocGlobalData::ExpansionData {
.virtual_range = reserved_region->range(),