Add read/write bus barriers for MIPS.
Tested: * AR9344 - mips74k SoC Approved by: re@ (delphij)
This commit is contained in:
parent
8fdf27c6d7
commit
d5cc57e6ab
@ -749,4 +749,8 @@ generic_bs_barrier(void *t __unused,
|
||||
if (flags & BUS_SPACE_BARRIER_WRITE)
|
||||
mips_dcache_wbinv_all();
|
||||
#endif
|
||||
if (flags & BUS_SPACE_BARRIER_READ)
|
||||
rmb();
|
||||
if (flags & BUS_SPACE_BARRIER_WRITE)
|
||||
wmb();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user