summaryrefslogtreecommitdiff
path: root/Kernel/VM/MemoryManager.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-08-21 21:49:50 -0600
committerAndreas Kling <kling@serenityos.org>2020-08-22 10:46:24 +0200
commita89ccd842becdfbc951436da5384d8819374e0f4 (patch)
tree8671d0066eebe2412e4da1c5b7d4fd85505bbcdb /Kernel/VM/MemoryManager.h
parent41c005cb140c8a9ae94e6b68456d8d6f1d925a8f (diff)
downloadserenity-a89ccd842becdfbc951436da5384d8819374e0f4.zip
Kernel: Make PhysicalPage not movable and use atomic ref counting
We should not be moving ref-counted objects.
Diffstat (limited to 'Kernel/VM/MemoryManager.h')
-rw-r--r--Kernel/VM/MemoryManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/VM/MemoryManager.h b/Kernel/VM/MemoryManager.h
index a7a324ed0d..f2c3bde451 100644
--- a/Kernel/VM/MemoryManager.h
+++ b/Kernel/VM/MemoryManager.h
@@ -114,8 +114,8 @@ public:
RefPtr<PhysicalPage> allocate_user_physical_page(ShouldZeroFill = ShouldZeroFill::Yes);
RefPtr<PhysicalPage> allocate_supervisor_physical_page();
NonnullRefPtrVector<PhysicalPage> allocate_contiguous_supervisor_physical_pages(size_t size);
- void deallocate_user_physical_page(PhysicalPage&&);
- void deallocate_supervisor_physical_page(PhysicalPage&&);
+ void deallocate_user_physical_page(const PhysicalPage&);
+ void deallocate_supervisor_physical_page(const PhysicalPage&);
OwnPtr<Region> allocate_contiguous_kernel_region(size_t, const StringView& name, u8 access, bool user_accessible = false, bool cacheable = true);
OwnPtr<Region> allocate_kernel_region(size_t, const StringView& name, u8 access, bool user_accessible = false, bool should_commit = true, bool cacheable = true);