RTEMS | Draft: bsps/riscv: add Smrnmi extension support (!1391)

Lucian Silistru (@lsilistr) gitlab at rtems.org
Wed Aug 26 17:21:19 UTC 2026




Lucian Silistru commented on a discussion on bsps/riscv/shared/rnmi/riscv-rnmi-handler.S: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1391#note_158078

 > + */
 > +
 > +#ifdef HAVE_CONFIG_H
 > +#include "config.h"
 > +#endif
 > +
 > +#include <rtems/asm.h>
 > +#include <rtems/score/percpu.h>
 > +#include <bsp/riscv-rnmi.h>
 > +
 > +PUBLIC(_RISCV_RNMI_handler)
 > +
 > +	.section	.text, "ax", @progbits
 > +	.align	2
 > +	.option	arch, +zicsr
 > +

There's some macros on powerpc I could look at. It duplicates quite a bit, at least (F)SREG/(F)LREG blocks could be reused.

When I was investigating on that (I hoped ppc critical interrupts would not be disabled by interrupt disable) I found navigating them a little annoying for readability as someone that did not know what exactly they were doing.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1391#note_158078
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-etxw0vzvxtdsx72ejsipniqac-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/2ccf0dff/attachment-0001.htm>


More information about the bugs mailing list