]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARC: IO: add compiler barriers to IO accessors
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Mon, 30 Mar 2020 19:44:44 +0000 (22:44 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Tue, 31 Mar 2020 15:31:53 +0000 (18:31 +0300)
commite9a23c98c9dc8eccc696e5ca6ccd94bacdb32c7d
tree102bd31fb9ac4e056ba305edff3e2d73e6e3dee5
parent7e5702282374138507ab3c08dfc1b28dd9ec2bd7
ARC: IO: add compiler barriers to IO accessors

We must use compiler barriers in C-version read/write IO accessors
before and after operation (read or write) so it won't be reordered
by compiler.

Fixes commit 07906b3dad15 ("ARC: Switch to generic accessors")

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/include/asm/io.h