RTEMS | Draft: bsps/riscv: add Smrnmi extension support (!1391)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed Aug 26 16:49:11 UTC 2026
Gedare Bloom started a new discussion on bsps/riscv/riscv/include/bsp/irq.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1391#note_158066
> + (x) < RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS))
> +
> +#ifdef RISCV_SMRNMI
> +
> +#define RISCV_RNMI_VECTOR_PIN_ASSERTION \
> + RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS)
> +#define RISCV_RNMI_VECTOR_EXT_BUS_ERROR_STORE \
> + (RISCV_RNMI_VECTOR_PIN_ASSERTION + 1)
> +#define RISCV_RNMI_VECTOR_EXT_BUS_ERROR_LOAD \
> + (RISCV_RNMI_VECTOR_PIN_ASSERTION + 2)
> +
> +#define RISCV_MAXIMUM_RNMI_INTERRUPTS 3
> +
> +#define RISCV_INTERRUPT_VECTOR_IS_RNMI(x) \
> + ((x) >= RISCV_RNMI_VECTOR_PIN_ASSERTION && \
> + (x) <= RISCV_RNMI_VECTOR_EXT_BUS_ERROR_LOAD)
this will be more future-proof by using `RISCV_MAXIMUM_RNMI_INTERRUPTS `
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1391#note_158066
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-65gx6pkc1h0508gauebfvvy19-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260826/ff3321a6/attachment.htm>
More information about the bugs
mailing list