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

Gedare Bloom (@gedare) gitlab at rtems.org
Wed May 20 20:49:25 UTC 2026




Gedare Bloom commented on a discussion on cpukit/dhrl/dhrl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150622

 > +      atomic_store_explicit(
 > +        &ctx->winning_data_ptr,
 > +        (uintptr_t) target_addr,
 > +        memory_order_release
 > +      );
 > +    }
 > +
 > +    rtems_barrier_wait( ctx->tail_barrier, RTEMS_NO_TIMEOUT );
 > +  }
 > +}
 > +
 > +/* Internal Hybrid Barrier Execution */
 > +static volatile void *dhrl_fetch_data(
 > +  struct dhrl_control *ctx,
 > +  volatile void       *addr_a,
 > +  volatile void       *addr_b

My guess is that the cast to volatile will have the same effect. You could probably verify this by inspecting the generated disassembly.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150622
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/7334256f/attachment-0001.htm>


More information about the bugs mailing list