diff options
author | Tom <tomut@yahoo.com> | 2020-08-21 21:49:50 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-25 09:48:48 +0200 |
commit | 08a569fbe0567eb4d8aebb08d3021c4103684635 (patch) | |
tree | 2b3b0a6cb88599a18df9df33c7be4f24d9541ec4 /Kernel/VM/MemoryManager.h | |
parent | 3320bb45d1cd5df66e3f29c55f5aacb112308b95 (diff) | |
download | serenity-08a569fbe0567eb4d8aebb08d3021c4103684635.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.h | 4 |
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); |