RTEMS | cpukit: Create DHRL Library for DRAM Latency Mitigation (!1193)

Wayne Thornton (@wmthornton-dev) gitlab at rtems.org
Thu May 21 01:44:04 UTC 2026




Wayne Thornton commented on a discussion on cpukit/dhrl/dhrl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150644

 > +      atomic_compare_exchange_strong_explicit(
 > +        &ctx->completed_epoch,
 > +        &expected,
 > +        my_epoch,
 > +        memory_order_release,
 > +        memory_order_relaxed
 > +      )
 > +    ) {
 > +      atomic_store_explicit(
 > +        &ctx->winning_data_ptr,
 > +        (uintptr_t) target_addr,
 > +        memory_order_release
 > +      );
 > +    }
 > +
 > +    rtems_barrier_wait( ctx->tail_barrier, RTEMS_NO_TIMEOUT );

Done. You're right that the `tail_barrier`is redundant. Changes will be pushed in next commit.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150644
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/20260521/9081af1e/attachment.htm>


More information about the bugs mailing list