This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new bd7074460c arch/risc-v/src/mpfs/mpfs_irq.c: Default global interrupt priorities bd7074460c is described below commit bd7074460c85ec828a49d775849cda26c7d050bc Author: BitBender334 <noah.zw...@pvl-labs.com> AuthorDate: Mon Nov 18 16:27:00 2024 -0500 arch/risc-v/src/mpfs/mpfs_irq.c: Default global interrupt priorities --- arch/risc-v/src/mpfs/mpfs_irq.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/risc-v/src/mpfs/mpfs_irq.c b/arch/risc-v/src/mpfs/mpfs_irq.c index b0b3e1bb4c..5bb97559d5 100644 --- a/arch/risc-v/src/mpfs/mpfs_irq.c +++ b/arch/risc-v/src/mpfs/mpfs_irq.c @@ -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();