RTEMS | bsps/riscv: Accept the maximum external interrupt (!1552)
Yadi choudhary (@yadi)
gitlab at rtems.org
Sun Nov 1 14:42:20 UTC 2026
Yadi choudhary created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1552
Project:Branches: yadi/rtems:riscv-plic-last-source to rtems/rtos/rtems:main
Author: Yadi choudhary
## Summary
bsps/riscv: Accept the maximum external interrupt
RISCV_MAXIMUM_EXTERNAL_INTERRUPTS is the highest PLIC interrupt source
number, and source numbers start at one. The vector table had no slot
for the maximum source and bsp_interrupt_is_valid_vector() rejected it.
On the QEMU virt machine (riscv,ndev = 95), installing a handler for
source 95 failed with RTEMS_INVALID_ID.
Add a vector for the maximum source and accept it as valid. Use the
masked dispatch only if the maximum plus one is a power of two, and mask
with the maximum. Otherwise, the source equal to the maximum would wrap
to vector zero.
Close #5791.
## Generative AI
<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->
<!-- Default settings, if it is a dropdown it will set after submission -->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1552
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-eh2zcipxsr7ovxuhomtnz5bfw-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/20261101/52ff8f34/attachment.htm>
More information about the bugs
mailing list