From af267772f0af1303728fa98fe786153950c1b2e4 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 19 Nov 2022 22:32:48 +0100 Subject: [PATCH] Rename MemoryManager::map to map_frames_at To make it clearer that this API is only intented for mapping contiguous frames of physical memory (for MMIO perhaps?) --- kernel/src/memory/MemoryManager.cpp | 2 +- kernel/src/memory/MemoryManager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/memory/MemoryManager.cpp b/kernel/src/memory/MemoryManager.cpp index b3fc2f8c..978a0b98 100644 --- a/kernel/src/memory/MemoryManager.cpp +++ b/kernel/src/memory/MemoryManager.cpp @@ -171,7 +171,7 @@ namespace MemoryManager return {}; } - Result map(u64 virt, u64 phys, usize count, int flags) + Result map_frames_at(u64 virt, u64 phys, usize count, int flags) { CHECK_PAGE_ALIGNED(virt); CHECK_PAGE_ALIGNED(phys); diff --git a/kernel/src/memory/MemoryManager.h b/kernel/src/memory/MemoryManager.h index 734aa87c..17bf0136 100644 --- a/kernel/src/memory/MemoryManager.h +++ b/kernel/src/memory/MemoryManager.h @@ -20,7 +20,7 @@ namespace MemoryManager bool validate_readable_page(u64 address); bool validate_writable_page(u64 address); - Result map(u64 virt, u64 phys, usize count, int flags); + Result map_frames_at(u64 virt, u64 phys, usize count, int flags); Result alloc_at(u64 virt, usize count, int flags);