From 08a569fbe0567eb4d8aebb08d3021c4103684635 Mon Sep 17 00:00:00 2001 From: Tom Date: Fri, 21 Aug 2020 21:49:50 -0600 Subject: Kernel: Make PhysicalPage not movable and use atomic ref counting We should not be moving ref-counted objects. --- Kernel/VM/MemoryManager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel/VM/MemoryManager.h') 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 allocate_user_physical_page(ShouldZeroFill = ShouldZeroFill::Yes); RefPtr allocate_supervisor_physical_page(); NonnullRefPtrVector 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 allocate_contiguous_kernel_region(size_t, const StringView& name, u8 access, bool user_accessible = false, bool cacheable = true); OwnPtr allocate_kernel_region(size_t, const StringView& name, u8 access, bool user_accessible = false, bool should_commit = true, bool cacheable = true); -- cgit v1.2.3