commit | 5bea2becf3b6897315fa01d8318df75526855745 | [log] [tgz] |
---|---|---|
author | Alexey Brodkin <abrodkin@synopsys.com> | Wed Jun 08 08:24:54 2016 +0300 |
committer | Alexey Brodkin <abrodkin@synopsys.com> | Mon Jun 13 14:38:05 2016 +0200 |
tree | 14c484611c8cbbe144c980e3b0c2c9b6e3c66b11 | |
parent | c7d8db66ffd1c20b6a27445af892c28305e64e8a [diff] |
arc: Update data accessors with use of memory barriers Memory barriers are proven to be a requirement for both compiler and real hardware to properly serialize access to critical data. For example if CPU or data bus it uses may do reordering of data accesses absence of memory barriers might easily lead to very subtle and hard to debug data corruptions. This implementation was heavily borrowed from up to date Linux kernel. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>