RTEMS | cpukit: Create DHRL Library for DRAM Latency Mitigation (!1193)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed May 20 20:49:01 UTC 2026
Gedare Bloom started a new discussion on cpukit/score/cpu/x86_64/include/rtems/score/cpu.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150615
>
> typedef uintptr_t CPU_Uint32ptr;
>
> +/**
> + * @brief Pauses the CPU pipeline to prevent aggressive speculative execution
> + * and reduce thermal load during spin-wait loops.
> + */
> +static inline void _CPU_Pause_speculation( void )
> +{
> + __asm__ volatile( "pause" ::: "memory" );
there is already `amd64_spinwait()`
I like the idea of generalizing this for other architectures though, so I'm happy with the new function. Maybe we should go with `_CPU_Spin_wait()` though. I believe there is `pause` in riscv also, and arm's `yield` function looks similar.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150615
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/fdef9646/attachment.htm>
More information about the bugs
mailing list