Skip to content

Commit

Permalink
Undo MMU. before1=0, before2=0, after1=1, after2=1
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Nov 26, 2023
1 parent 022b7aa commit c8b3732
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions arch/risc-v/src/jh7110/bl602_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,9 @@ void test_interrupt_priority(void)
static uint32_t after2 = 0xFF;

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

// Read the values before setting Interrupt Priority
before1 = *(volatile uint32_t *) 0xe0000050UL;
Expand All @@ -475,8 +475,8 @@ void test_interrupt_priority(void)
after2 = *(volatile uint32_t *) 0xe0000054UL;

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

// Dump before and after values
_info("before1=%u, before2=%u, after1=%u, after2=%u\n", before1, before2, after1, after2);
Expand Down

0 comments on commit c8b3732

Please sign in to comment.