Add read/write bus barriers for MIPS.

Tested:

* AR9344 - mips74k SoC

Approved by:	re@ (delphij)
This commit is contained in:
Adrian Chadd 2013-10-09 22:10:03 +00:00
parent 8fdf27c6d7
commit d5cc57e6ab

View File

@ -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();
}