Quantcast
Viewing all articles
Browse latest Browse all 4860

C/C++ • Re: why are memory barriers not used in projects like pigpio

This is quite common for modern out-of-order CPUs, AFAICT, it is not a hardware bug
there might be some confusion, because the bcm2835 did have a hardware bug
lets say you read from the uart, and the gpio, back to back
the hardware bug, would cause the uart read, to return gpio data
and the gpio read would get uart data

and the fix was to insert barriers any time you switch peripherals

Statistics: Posted by cleverca22 — Fri Jan 19, 2024 10:15 pm



Viewing all articles
Browse latest Browse all 4860

Trending Articles