RTEMS | riscv: enable using PLIC in S-mode (!1242)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu May 14 13:26:18 UTC 2026




Kinsey Moore started a new discussion on bsps/riscv/riscv/irq/irq.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1242#note_150045

 > -    bsp_fatal(RISCV_FATAL_UNEXPECTED_INTERRUPT_EXCEPTION);
 > -  }
 > -}
 > -
 > -#else
 >  
 > -static void riscv_interrupt_dispatch_machine(
 > -    uintptr_t mcause,
 > -    Per_CPU_Control *cpu_self
 > -)
 > -{
 >    /*
 >     * Get rid of the most significant bit which indicates if the exception was
 >     * caused by an interrupt or not.
 >     */
 >    mcause <<= 1;

Probably best to rename this in unified code.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1242#note_150045
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260514/40dcd81d/attachment-0001.htm>


More information about the bugs mailing list