Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3466)

Unified Diff: src/include/concurrency_ops.h

Issue 10919162: [MIPS] Implementation of sel_ldr for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebase (Saturday morning). Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « site_scons/site_tools/library_deps.py ('k') | src/include/elf_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/include/concurrency_ops.h
diff --git a/src/include/concurrency_ops.h b/src/include/concurrency_ops.h
index 80f57835397dde3f6a4d91fc0f8d14a88d6c9a93..eb68bf24ca7fb89b4e8750c5a9ae506764925d60 100644
--- a/src/include/concurrency_ops.h
+++ b/src/include/concurrency_ops.h
@@ -36,6 +36,12 @@ static INLINE void NaClWriteMemoryBarrier() {
*/
}
+#elif NACL_ARCH(NACL_BUILD_ARCH) == NACL_mips
+
+static INLINE void NaClWriteMemoryBarrier() {
+ __asm__ __volatile__("sync" : : : "memory");
+}
+
#else
#error "Define for other architectures"
« no previous file with comments | « site_scons/site_tools/library_deps.py ('k') | src/include/elf_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698