RTEMS | cpukit: Create DHRL Library for DRAM Latency Mitigation (!1193)
Wayne Thornton (@wmthornton-dev)
gitlab at rtems.org
Thu May 21 01:57:13 UTC 2026
Wayne Thornton commented on a discussion on cpukit/dhrl/dhrl.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150646
> +
> + switch ( ctx->active_config.data_size ) {
> + case 1:
> + (void) *(volatile uint8_t *) target_addr;
> + break;
> + case 2:
> + (void) *(volatile uint16_t *) target_addr;
> + break;
> + case 4:
> + (void) *(volatile uint32_t *) target_addr;
> + break;
> + case 8:
> + (void) *(volatile uint64_t *) target_addr;
> + break;
> + default:
> + continue;
It's logically impossible for the code to ever reach this `default` case unless the internal memory structure is actively corrupted during runtime. I've added `rtems/score/basedefs.h` as an `#include' and set the 'default' case to 'RTEMS_UNREACHABLE()'. Will push in the next commit.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1193#note_150646
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/81acc094/attachment-0001.htm>
More information about the bugs
mailing list