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?)
This commit is contained in:
apio 2022-11-19 22:32:48 +01:00
parent 1b41a3e9cf
commit af267772f0
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ namespace MemoryManager
return {};
}
Result<void> map(u64 virt, u64 phys, usize count, int flags)
Result<void> map_frames_at(u64 virt, u64 phys, usize count, int flags)
{
CHECK_PAGE_ALIGNED(virt);
CHECK_PAGE_ALIGNED(phys);

View File

@ -20,7 +20,7 @@ namespace MemoryManager
bool validate_readable_page(u64 address);
bool validate_writable_page(u64 address);
Result<void> map(u64 virt, u64 phys, usize count, int flags);
Result<void> map_frames_at(u64 virt, u64 phys, usize count, int flags);
Result<u64> alloc_at(u64 virt, usize count, int flags);