Skip to content

Commit

Permalink
Log the Level 1 Page Tables
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jan 16, 2024
1 parent 33424a1 commit 6a1c548
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/risc-v/src/common/riscv_addrenv.c
Expand Up @@ -711,7 +711,10 @@ ssize_t up_addrenv_heapsize(const arch_addrenv_t *addrenv)

int up_addrenv_select(const arch_addrenv_t *addrenv)
{
_info("addrenv=%p, satp=%p\n", addrenv, addrenv->satp);////
const uintptr_t page_table = (addrenv->satp & 0xfffff) << 12;////
_info("addrenv=%p, satp=%p, page_table=%p\n", addrenv, addrenv->satp, page_table);////
infodumpbuffer("*page_table=", page_table, 8 * 10);////

DEBUGASSERT(addrenv && addrenv->satp);
mmu_write_satp(addrenv->satp);
return OK;
Expand Down

0 comments on commit 6a1c548

Please sign in to comment.