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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment