Branch oldpackages for 14.07
[14.07/packages.git] / devel / sysprof / patches / rmb-mips.patch
1 Upstream-Status: Pending
2
3 Index: 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