RTEMS | bsps/riscv: Share the CLINT, PLIC and clock drivers (!1520)

Gedare Bloom (@gedare) gitlab at rtems.org
Tue Oct 13 00:46:56 UTC 2026




Gedare Bloom started a new discussion on bsps/riscv/include/bsp/riscv-fdt-irq.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1520#note_160964

 > + *   indicates a processor without a CLINT index.
 > + */
 > +static inline uint32_t riscv_clint_get_index( uint32_t cpu_index )
 > +{
 > +  if ( cpu_index >= RISCV_FDT_PROCESSOR_MAXIMUM ) {
 > +    return UINT32_MAX;
 > +  }
 > +
 > +  return riscv_fdt_clint_index[ cpu_index ];
 > +}
 > +#endif
 > +
 > +/**
 > + * @brief This define indicates that the system may have no PLIC.
 > + */
 > +#define RISCV_PLIC_MAY_BE_ABSENT

should it be `MAY_BE_INVALID` here or use `MAY_BE_ABSENT` in the other two?

Should these defines be consolidated instead of spread among the helper functions?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1520#note_160964
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-06sravpcnw5vqezqz4qhp0rsn-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/20261013/059683fc/attachment-0001.htm>


More information about the bugs mailing list