RTEMS | Draft: bsps/riscv: add Smrnmi extension support (!1391)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed Aug 26 16:46:10 UTC 2026
Gedare Bloom started a new discussion on bsps/riscv/include/bsp/riscv-rnmi.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1391#note_158065
> +#define RNMI_CTX_MNCAUSE 0
> +#define RNMI_CTX_MNEPC 4
> +#define RNMI_CTX_SIZE 8
> +#endif
> +
> +/*
> + * Offset of clint_msip pointer within Per_CPU_Control, for assembly.
> + */
> +#if defined(__riscv_atomic) && __riscv_xlen == 64
> +#define RISCV_PER_CPU_CLINT_MSIP 40
> +#elif defined(__riscv_atomic) && __riscv_xlen == 32
> +#define RISCV_PER_CPU_CLINT_MSIP 28
> +#elif __riscv_xlen == 64
> +#define RISCV_PER_CPU_CLINT_MSIP 24
> +#elif __riscv_xlen == 32
> +#define RISCV_PER_CPU_CLINT_MSIP 12
these seem to belong to cpuimpl.h
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1391#note_158065
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/5-61jtdjnorv5zq7k1bns9m5m1h-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/63191155/attachment-0001.htm>
More information about the bugs
mailing list