Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / platforms / android-16 / arch-mips / usr / include / asm / barrier.h
blob4aed9a7c0ca72be78760ce96527a162eb83525ea
1 /****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19 #ifndef __ASM_BARRIER_H
20 #define __ASM_BARRIER_H
21 #define read_barrier_depends() do { } while(0)
22 #define smp_read_barrier_depends() do { } while(0)
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define __sync() do { } while(0)
25 #define __fast_iob() __asm__ __volatile__( ".set push\n\t" ".set noreorder\n\t" "lw $0,%0\n\t" "nop\n\t" ".set pop" : : "m" (*(int *)CKSEG1) : "memory")
26 #define fast_wmb() __sync()
27 #define fast_rmb() __sync()
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define fast_mb() __sync()
30 #define fast_iob() do { __sync(); __fast_iob(); } while (0)
31 #define wmb() fast_wmb()
32 #define rmb() fast_rmb()
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define mb() fast_mb()
35 #define iob() fast_iob()
36 #define __WEAK_ORDERING_MB " \n"
37 #define __WEAK_LLSC_MB " \n"
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define smp_mb() __asm__ __volatile__(__WEAK_ORDERING_MB : : :"memory")
40 #define smp_rmb() __asm__ __volatile__(__WEAK_ORDERING_MB : : :"memory")
41 #define smp_wmb() __asm__ __volatile__(__WEAK_ORDERING_MB : : :"memory")
42 #define set_mb(var, value) do { var = value; smp_mb(); } while (0)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define smp_llsc_mb() __asm__ __volatile__(__WEAK_LLSC_MB : : :"memory")
45 #define smp_llsc_rmb() __asm__ __volatile__(__WEAK_LLSC_MB : : :"memory")
46 #define smp_llsc_wmb() __asm__ __volatile__(__WEAK_LLSC_MB : : :"memory")
47 #endif
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */