blob: e055b8ad8bacff13781f766df2ccf7e3eb61fc79 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Pending
2
3Index: git/util.h
4===================================================================
5--- git.orig/util.h 2010-12-08 01:22:44.486243001 -0600
6+++ git/util.h 2010-12-08 01:23:27.836243001 -0600
7@@ -37,4 +37,15 @@
8 #define cpu_relax() asm volatile("" ::: "memory");
9 #endif
10
11+#ifdef __mips__
12+#define rmb() asm volatile( \
13+ ".set mips2\n\t" \
14+ "sync\n\t" \
15+ ".set mips0" \
16+ : /* no output */ \
17+ : /* no input */ \
18+ : "memory")
19+#define cpu_relax() asm volatile("" ::: "memory")
20+#endif
21+
22 #endif