From c8b373272a85738575d275ce11444312595216c0 Mon Sep 17 00:00:00 2001 From: Lee Lup Yuen Date: Sun, 26 Nov 2023 16:15:59 +0800 Subject: [PATCH] Undo MMU. before1=0, before2=0, after1=1, after2=1 --- arch/risc-v/src/jh7110/bl602_serial.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/risc-v/src/jh7110/bl602_serial.c b/arch/risc-v/src/jh7110/bl602_serial.c index 2bbafa8f4e09a..eaf5815561d2c 100644 --- a/arch/risc-v/src/jh7110/bl602_serial.c +++ b/arch/risc-v/src/jh7110/bl602_serial.c @@ -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; @@ -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);