RTEMS | cpukit: Create DHRL Library for DRAM Latency Mitigation (!1193)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed May 20 20:46:49 UTC 2026
Gedare Bloom started a new discussion on cpukit/dhrl/dhrl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150586
> +#include <sys/cpuset.h>
> +#include <stddef.h>
> +#include <stdint.h>
> +#include <rtems/thread.h>
> +#include <stdatomic.h>
> +#include <rtems/score/cpu.h>
> +#include <rtems/rtems/cache.h>
> +
> +/* Fallback protection if the active architecture BSP lacks the pause hook */
> +#ifndef _CPU_Pause_speculation
> + #define _CPU_Pause_speculation() \
> + __asm__ __volatile__( "" \
> + : \
> + : \
> + : "memory" )
> +#endif
This should be provided as a default in the CPU ports.
I guess this is just an `RTEMS_COMPILER_MEMORY_BARRIER`. I would make that the explicit default implementation if this is necessary.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150586
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/20260520/270de42b/attachment.htm>
More information about the bugs
mailing list