RTEMS | cpukit: Create DHRL Library for DRAM Latency Mitigation (!1193)
Wayne Thornton (@wmthornton-dev)
gitlab at rtems.org
Wed May 20 20:48:14 UTC 2026
Wayne Thornton commented on a discussion on cpukit/include/rtems/dhrl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150605
> +/* SPDX-License-Identifier: BSD-2-Clause */
> +
> +/**
> + * @file
> + *
> + * @brief Deterministic Hedged Read Library (DHRL) Public API
> + *
> + * @note This library is explicitly constrained to x86_64/amd64 architectures.
@gedare That makes perfect sense. I agree that failing loudly at compile-time is much safer than allowing silent fallbacks on unsupported hardware.
I removed the empty assembly fallback in dhrl.c and replaced it with an #error directive. If _CPU_Pause_speculation is missing, the build will now explicitly halt.
The spec/build/cpukit/libdhrl.yml specification to include enabled-by: RTEMS_SMP was already included and the build system was already entirely skipping the library on uni-processor targets.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150605
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/9df59e7b/attachment.htm>
More information about the bugs
mailing list