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:
parent
1b41a3e9cf
commit
af267772f0
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user