Install interrupt handler on Microsemi Polarfire SoC

Dears, I need to register my interrupt handler in RISC-V system, namely Microsemi Polarfire SoC. I use RTEMS 6.1. The manual rtems-6.1-c-user.pdf tells that it should be done by function rtems_interrupt_catch. The function rtems_interrupt_catch is not available, however. I use Beagle-V fire BSP.

As I see in file intrcatch.c, to use function rtems_interrupt_catch, option CPU_SIMPLE_VECTORED_INTERRUPTS must be set to true. I did not find where to set this option. I tried to set it up in config.ini, however waf reported that this configuration option is unknown.

Function rtems_interrupt_handler_install looks as another option to install ISR. This function causes exception although the pointer to ISR is correct.

I would like to use external as well as internal interrupts. I am thankful to any help with installation of any ISR handler.

Hello, the RISC-V CPU port uses the PIC API to handle interrupts. So you should be using rtems_interrupt_handler_install().

You might also need to check your FDT.