diff options
author | Liav A <51659396+supercomputer7@users.noreply.github.com> | 2019-11-08 23:39:29 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-11-08 22:39:29 +0100 |
commit | bce510bf6ff14ccd86507e560e734cb56d754b20 (patch) | |
tree | 31af1513f27421ee82f3b7b2aab6e5b41c83298c /Kernel/VM/MemoryManager.h | |
parent | fa77a57257e16d550890dec3f1c47df21c541be4 (diff) | |
download | serenity-bce510bf6ff14ccd86507e560e734cb56d754b20.zip |
Kernel: Fix the search method of free userspace physical pages (#742)
Now the userspace page allocator will search through physical regions,
and stop the search as it finds an available page.
Also remove an "address of" sign since we don't need that when
counting size of physical regions
Diffstat (limited to 'Kernel/VM/MemoryManager.h')
-rw-r--r-- | Kernel/VM/MemoryManager.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/VM/MemoryManager.h b/Kernel/VM/MemoryManager.h index 9a3ffd1018..399d0f1502 100644 --- a/Kernel/VM/MemoryManager.h +++ b/Kernel/VM/MemoryManager.h @@ -103,6 +103,7 @@ private: static Region* region_from_vaddr(VirtualAddress); + RefPtr<PhysicalPage> find_free_user_physical_page(); u8* quickmap_page(PhysicalPage&); void unquickmap_page(); |