mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
mmu: Pass missing tbl argument to mmu_map_page in mmu_map_page_range (#28)
This commit is contained in:
parent
a798df5a2c
commit
3020faf8a2
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ static inline void mmu_map_block_range(unsigned int level, uintptr_t *tbl, uintp
|
||||||
static inline void mmu_map_page_range(uintptr_t *tbl, uintptr_t base_addr, uintptr_t phys_addr, size_t size, uint64_t attrs) {
|
static inline void mmu_map_page_range(uintptr_t *tbl, uintptr_t base_addr, uintptr_t phys_addr, size_t size, uint64_t attrs) {
|
||||||
size = (size >> MMU_Lx_SHIFT(3)) << MMU_Lx_SHIFT(3);
|
size = (size >> MMU_Lx_SHIFT(3)) << MMU_Lx_SHIFT(3);
|
||||||
for(size_t offset = 0; offset < size; offset += MMU_Lx_SHIFT(3)) {
|
for(size_t offset = 0; offset < size; offset += MMU_Lx_SHIFT(3)) {
|
||||||
mmu_map_page(base_addr + offset, phys_addr + offset, attrs);
|
mmu_map_page(tbl, base_addr + offset, phys_addr + offset, attrs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue