mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 07:15:20 +00: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:
parent
aacdbf2a3b
commit
3f3b30e384
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue