diff --git a/arch/risc-v/src/qemu-rv/qemu_rv_irq.c b/arch/risc-v/src/qemu-rv/qemu_rv_irq.c index dc82265c1e303..edf4b2b8fa876 100644 --- a/arch/risc-v/src/qemu-rv/qemu_rv_irq.c +++ b/arch/risc-v/src/qemu-rv/qemu_rv_irq.c @@ -54,6 +54,15 @@ void up_irqinitialize(void) putreg32(0x0, QEMU_RV_PLIC_ENABLE1); putreg32(0x0, QEMU_RV_PLIC_ENABLE2); +#ifdef NOTUSED + // Disable All Global Interrupts for Hart 1 Machine-Mode + // | 0x0C00_2080 | 4B | RW | Start Hart 1 M-Mode interrupt enables + #define QEMU_RV_PLIC_ENABLE1_MMODE (QEMU_RV_PLIC_BASE + 0x002080) + #define QEMU_RV_PLIC_ENABLE2_MMODE (QEMU_RV_PLIC_BASE + 0x002084) + putreg32(0x0, QEMU_RV_PLIC_ENABLE1_MMODE); + putreg32(0x0, QEMU_RV_PLIC_ENABLE2_MMODE); +#endif // NOTUSED + /* Colorize the interrupt stack for debug purposes */ #if defined(CONFIG_STACK_COLORATION) && CONFIG_ARCH_INTERRUPTSTACK > 15