Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | |
| 2 | Upstream-Status: Pending |
| 3 | |
| 4 | Index: git/util.h |
| 5 | =================================================================== |
| 6 | --- git.orig/util.h 2010-12-07 22:41:57.156243001 -0600 |
| 7 | +++ git/util.h 2010-12-07 22:43:47.616243002 -0600 |
| 8 | @@ -37,4 +37,13 @@ |
| 9 | #define cpu_relax() asm volatile("" ::: "memory"); |
| 10 | #endif |
| 11 | |
| 12 | +#ifdef __arm__ |
| 13 | +/* |
| 14 | + * Use the __kuser_memory_barrier helper in the CPU helper page. See |
| 15 | + * arch/arm/kernel/entry-armv.S in the kernel source for details. |
| 16 | + */ |
| 17 | +#define rmb() ((void(*)(void))0xffff0fa0)() |
| 18 | +#define cpu_relax() asm volatile("":::"memory") |
| 19 | +#endif |
| 20 | + |
| 21 | #endif |