Gedare Bloom started a new discussion on bsps/riscv/riscv/irq/rnmi.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1391#note_158070 > +#include <rtems/score/cpu.h> > +#include <rtems/score/percpu.h> > +#include <rtems/score/riscv-utility.h> > +#include <rtems/score/smpimpl.h> > + > +/* Per-core deferred RNMI contexts */ > +static RISCV_RNMI_Context _RISCV_RNMI_context[CPU_MAXIMUM_PROCESSORS]; > + > +static void _RISCV_RNMI_deferred_enable_action(void *arg) > +{ > + (void)arg; > + uint32_t cpu_index = _Per_CPU_Get_index(_Per_CPU_Get()); > + uintptr_t ctx_addr = (uintptr_t)&_RISCV_RNMI_context[cpu_index]; > + > + /* Enable deferred processing on this hart */ > + write_csr(0x740, ctx_addr); add a macro for what is 0x740 if it's not already in the encoding.h header, add to riscv-utility.h probably. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1391#note_158070 You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-bzqeki3mx0xglust0dzm5t1zf-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
