diff options
author | Liav A <liavalb@gmail.com> | 2021-12-23 21:11:18 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-08 13:21:16 +0200 |
commit | 876559d2839a2464ea42debc53a4c605d337816d (patch) | |
tree | 84b99ba73f2ca9d48c295172f1f2ac277af71b31 /Kernel/Memory | |
parent | f9c4f65e1faca2d4eec8c34820e3a62d871d9b0f (diff) | |
download | serenity-876559d2839a2464ea42debc53a4c605d337816d.zip |
Kernel: Change method name to clarify physical memory mmap validation
Diffstat (limited to 'Kernel/Memory')
-rw-r--r-- | Kernel/Memory/MemoryManager.cpp | 2 | ||||
-rw-r--r-- | Kernel/Memory/MemoryManager.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Memory/MemoryManager.cpp b/Kernel/Memory/MemoryManager.cpp index eacaf4cc20..3e14f503b7 100644 --- a/Kernel/Memory/MemoryManager.cpp +++ b/Kernel/Memory/MemoryManager.cpp @@ -209,7 +209,7 @@ UNMAP_AFTER_INIT void MemoryManager::register_reserved_ranges() m_reserved_memory_ranges.append(ContiguousReservedMemoryRange { range.start, m_physical_memory_ranges.last().start.get() + m_physical_memory_ranges.last().length - range.start.get() }); } -bool MemoryManager::is_allowed_to_mmap_to_userspace(PhysicalAddress start_address, VirtualRange const& range) const +bool MemoryManager::is_allowed_to_mmap_physical_memory_to_userspace(PhysicalAddress start_address, VirtualRange const& range) const { // Note: Guard against overflow in case someone tries to mmap on the edge of // the RAM diff --git a/Kernel/Memory/MemoryManager.h b/Kernel/Memory/MemoryManager.h index b23ec04ffb..761419c461 100644 --- a/Kernel/Memory/MemoryManager.h +++ b/Kernel/Memory/MemoryManager.h @@ -230,7 +230,7 @@ public: PageDirectory& kernel_page_directory() { return *m_kernel_page_directory; } Vector<UsedMemoryRange> const& used_memory_ranges() { return m_used_memory_ranges; } - bool is_allowed_to_mmap_to_userspace(PhysicalAddress, VirtualRange const&) const; + bool is_allowed_to_mmap_physical_memory_to_userspace(PhysicalAddress, VirtualRange const&) const; PhysicalPageEntry& get_physical_page_entry(PhysicalAddress); PhysicalAddress get_physical_address(PhysicalPage const&); |