Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 61dcc6f4 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] RTLX: Harden against compiler reordering and optimization.



RTLX communication is based on lock-free shared memory buffers.  It
happened to be working by luck so far but relies on the optimizer doing
certain optimizations but no reordering.

Fixed by inserting proper barriers in rtlx_read and rtlx_write, and careful
pointer dereferencing.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 9e346820
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment