mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
Kernel: Use a RangeAllocator for kernel-only virtual space allocation too.
This commit is contained in:
parent
b1bb737704
commit
4a6fcfbacf
4 changed files with 15 additions and 9 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <AK/Weakable.h>
|
||||
#include <Kernel/LinearAddress.h>
|
||||
#include <Kernel/VM/PhysicalPage.h>
|
||||
#include <Kernel/VM/RangeAllocator.h>
|
||||
#include <Kernel/VM/Region.h>
|
||||
#include <Kernel/VM/VMObject.h>
|
||||
#include <Kernel/FileSystem/InodeIdentifier.h>
|
||||
|
@ -216,6 +217,8 @@ private:
|
|||
HashTable<Region*> m_user_regions;
|
||||
HashTable<Region*> m_kernel_regions;
|
||||
|
||||
RangeAllocator m_range_allocator;
|
||||
|
||||
size_t m_ram_size { 0 };
|
||||
bool m_quickmap_in_use { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue