RTEMS | riscv: add helper functions (!1239)
Kinsey Moore (@opticron)
gitlab at rtems.org
Tue May 12 18:55:57 UTC 2026
Kinsey Moore started a new discussion on cpukit/score/cpu/riscv/include/rtems/score/riscv-utility.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1239#note_149897
> + __asm__ volatile ( "fence " #pred ", " #succ : : : "memory" )
> +
> +static inline void _RISCV_data_barrier( void )
> +{
> + _RISCV_FENCE( rw, rw );
> +}
> +
> +static inline void _RISCV_MMIO_store_release_fence( void )
> +{
> + _RISCV_FENCE( o, i );
> +}
> +
> +#if defined(RISCV_USE_S_MODE)
> +static inline void _RISCV_TLB_flush_all_entries( void )
> +{
> + __asm__ volatile ( "sfence.vma zero, zero" );
Since the `rw, rw` fences are getting reworked above, this can also use the same macro that it uses.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1239#note_149897
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260512/865ac9dc/attachment-0001.htm>
More information about the bugs
mailing list