Skip to content

Commit

Permalink
Disable and re-enable MMU. before1=0, before2=0, after1=1, after2=0
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Nov 26, 2023
1 parent de79217 commit 281b101
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/risc-v/src/jh7110/jh7110_mm_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,15 @@ void jh7110_mm_init(void)
mmu_enable(g_kernel_pgt_pbase, 0);

////Begin
_info("Disable MMU\n");
uintptr_t satp = mmu_read_satp();
mmu_write_satp(0);

_info("Test Interrupt Priority\n");
void test_interrupt_priority(void);
test_interrupt_priority();

_info("Enable MMU\n");
mmu_write_satp(satp);
////End
}

0 comments on commit 281b101

Please sign in to comment.