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:
Ville Juven
2023-11-01 14:35:38 +02:00
committed by Xiang Xiao
parent aacdbf2a3b
commit 3f3b30e384
+2 -2
View File
@@ -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);
}
}