mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Kernel: Change method name to clarify physical memory mmap validation
This commit is contained in:
parent
f9c4f65e1f
commit
876559d283
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/supercomputer7
Commit: 876559d283
Pull-request: https://github.com/SerenityOS/serenity/pull/11390
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/IdanHo ✅
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue