Skip to content

Commit

Permalink
arch/risc-v/src/mpfs/mpfs_irq.c: Default global interrupt priorities
Browse files Browse the repository at this point in the history
  • Loading branch information
BitBender334 authored and xiaoxiang781216 committed Nov 19, 2024
1 parent 6a19264 commit bd70744
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/risc-v/src/mpfs/mpfs_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ void up_irqinitialize(void)
riscv_stack_color(g_intstackalloc, intstack_size);
#endif

/* Set priority for all global interrupts to 1 (lowest) */

for (int id = 1; id <= NR_IRQS; id++)
{
putreg32(1, MPFS_PLIC_PRIORITY + (4 * id));
}

/* Attach the common interrupt handler */

riscv_exception_attach();
Expand Down

0 comments on commit bd70744

Please sign in to comment.