diff --git a/webrtc/modules/audio_device/android/single_rw_fifo.cc b/webrtc/modules/audio_device/android/single_rw_fifo.cc index 73d4d61dd..883265af0 100644 --- a/webrtc/modules/audio_device/android/single_rw_fifo.cc +++ b/webrtc/modules/audio_device/android/single_rw_fifo.cc @@ -44,6 +44,12 @@ inline void MemoryBarrier() { __asm__ __volatile__("mfence" : : : "memory"); } +#elif defined(__MIPSEL__) +// From http://src.chromium.org/viewvc/chrome/trunk/src/base/atomicops_internals_mips_gcc.h +inline void MemoryBarrier() { + __asm__ __volatile__("sync" : : : "memory"); +} + #else #error Add an implementation of MemoryBarrier() for this platform! #endif