diff options
author | Andreas Kling <kling@serenityos.org> | 2022-04-05 12:37:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-05 13:45:10 +0200 |
commit | e0da8da6574be1575864f38b3cd8670a3cb8326e (patch) | |
tree | 7a4b548da0cb79dbf505add18bc8aa160814c848 /Kernel/Memory/MemoryManager.h | |
parent | 3dbb4bc3a617e3ca421a35c6196ad5902bb357d1 (diff) | |
download | serenity-e0da8da6574be1575864f38b3cd8670a3cb8326e.zip |
Kernel: Move create_identity_mapped_region() to MemoryManager
This had no business being in RegionTree, since RegionTree doesn't track
identity-mapped regions anyway. (We allow *any* address to be identity
mapped, not just the ones that are part of the RegionTree's range.)
Diffstat (limited to 'Kernel/Memory/MemoryManager.h')
-rw-r--r-- | Kernel/Memory/MemoryManager.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Memory/MemoryManager.h b/Kernel/Memory/MemoryManager.h index f7b63b658e..4f8d1fc357 100644 --- a/Kernel/Memory/MemoryManager.h +++ b/Kernel/Memory/MemoryManager.h @@ -188,6 +188,7 @@ public: ErrorOr<NonnullOwnPtr<Region>> allocate_kernel_region(size_t, StringView name, Region::Access access, AllocationStrategy strategy = AllocationStrategy::Reserve, Region::Cacheable = Region::Cacheable::Yes); ErrorOr<NonnullOwnPtr<Region>> allocate_kernel_region(PhysicalAddress, size_t, StringView name, Region::Access access, Region::Cacheable = Region::Cacheable::Yes); ErrorOr<NonnullOwnPtr<Region>> allocate_kernel_region_with_vmobject(VMObject&, size_t, StringView name, Region::Access access, Region::Cacheable = Region::Cacheable::Yes); + ErrorOr<NonnullOwnPtr<Region>> create_identity_mapped_region(PhysicalAddress, size_t); struct SystemMemoryInfo { PhysicalSize user_physical_pages { 0 }; |