Add read/write bus barriers for MIPS.
Tested: * AR9344 - mips74k SoC Approved by: re@ (delphij)
This commit is contained in:
parent
627feb6294
commit
fe75d5f162
@ -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