Skip to content

Commit

Permalink
Hart 1 Machine Mode doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jul 30, 2023
1 parent 84e2349 commit 866da12
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arch/risc-v/src/qemu-rv/qemu_rv_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 866da12

Please sign in to comment.