mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
riscv_addrenv: Fix static page table mapping (paddr instead of vaddr)
Connecting the static page tables to each other was done with the page table virtual address (riscv_pgvaddr) when the page table physical address is needed.
This commit is contained in:
@@ -132,9 +132,9 @@ static void map_spgtables(arch_addrenv_t *addrenv, uintptr_t vaddr)
|
||||
|
||||
for (i = 0; i < (ARCH_SPGTS - 1); i++)
|
||||
{
|
||||
uintptr_t next = riscv_pgvaddr(addrenv->spgtables[i + 1]);
|
||||
uintptr_t next = addrenv->spgtables[i + 1];
|
||||
mmu_ln_setentry(i + 1, prev, next, vaddr, MMU_UPGT_FLAGS);
|
||||
prev = next;
|
||||
prev = riscv_pgvaddr(next);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user