RTEMS | [riscv] cpukit/score/.../cpu.h: Implement _CPU_Spin_wait() (!1351)

Wayne Thornton (@wmthornton-dev) gitlab at rtems.org
Thu Jul 16 21:25:50 UTC 2026



Wayne Thornton created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1351

Project:Branches: wmthornton-dev/rtems:cpu-spin-wait-riscv to rtems/rtos/rtems:main
Author:   Wayne Thornton



## Summary

[riscv] cpukit/score/.../cpu.h: Implement _CPU_Spin_wait()

_CPU_Spin_wait() is an assembly function which prevents
aggressive speculative execution by the CPU during spin-wait
loops. Added benefit is reduction of thermal load. This
function is part of the Deterministic Hedged Read Library API.


## Generative AI

<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->
None

<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1351
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-0a0rdcbffcihjmplcm1pbwthj-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260716/3a202c2a/attachment.htm>


More information about the bugs mailing list