diff options
author | Alexey Brodkin <abrodkin@synopsys.com> | 2016-06-08 08:24:54 +0300 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2016-06-13 14:38:05 +0200 |
commit | 5bea2becf3b6897315fa01d8318df75526855745 (patch) | |
tree | 14c484611c8cbbe144c980e3b0c2c9b6e3c66b11 /arch/sandbox/cpu/cpu.c | |
parent | c7d8db66ffd1c20b6a27445af892c28305e64e8a (diff) | |
download | u-boot-imx-5bea2becf3b6897315fa01d8318df75526855745.zip u-boot-imx-5bea2becf3b6897315fa01d8318df75526855745.tar.gz u-boot-imx-5bea2becf3b6897315fa01d8318df75526855745.tar.bz2 |
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>
Diffstat (limited to 'arch/sandbox/cpu/cpu.c')
0 files changed, 0 insertions, 0 deletions