summaryrefslogtreecommitdiff
path: root/Kernel/Heap/kmalloc.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-04-05 12:40:31 +0200
committerAndreas Kling <kling@serenityos.org>2022-04-05 13:45:10 +0200
commitf8d798b667bf946b76b05dac60afb26a3102b7bb (patch)
tree313175137db9c28e6b3e1ea4323d1b5f3ea73736 /Kernel/Heap/kmalloc.cpp
parente0da8da6574be1575864f38b3cd8670a3cb8326e (diff)
downloadserenity-f8d798b667bf946b76b05dac60afb26a3102b7bb.zip
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.
Diffstat (limited to 'Kernel/Heap/kmalloc.cpp')
-rw-r--r--Kernel/Heap/kmalloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Heap/kmalloc.cpp b/Kernel/Heap/kmalloc.cpp
index c35f818314..b27a4886c9 100644
--- a/Kernel/Heap/kmalloc.cpp
+++ b/Kernel/Heap/kmalloc.cpp
@@ -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(),