Add read/write bus barriers for MIPS.

Tested:

* AR9344 - mips74k SoC

Approved by:	re@ (delphij)
This commit is contained in:
adrian 2013-10-09 22:10:03 +00:00
parent 627feb6294
commit fe75d5f162

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