1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-18 00:12:03 +00:00

mmu: Remove extraneous argument to mmu_unmap in mmu_unmap_range

This commit is contained in:
Lioncash 2018-02-22 21:23:48 -05:00
parent a798df5a2c
commit d2f12c5900
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -165,7 +165,7 @@ static inline void mmu_map_page_range(uintptr_t *tbl, uintptr_t base_addr, uintp
static inline void mmu_unmap_range(unsigned int level, uintptr_t *tbl, uintptr_t base_addr, uintptr_t phys_addr, size_t size) {
size = (size >> MMU_Lx_SHIFT(level)) << MMU_Lx_SHIFT(level);
for(size_t offset = 0; offset < size; offset += MMU_Lx_SHIFT(level)) {
mmu_unmap(level, tbl, base_addr + offset, phys_addr + offset);
mmu_unmap(level, tbl, base_addr + offset);
}
}