Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / mips / include / asm / llsc.h
blobc6d17d171147fe96680dc66fb9c76e299121d41e
1 /*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
6 * Macros for 32/64-bit neutral inline assembler
7 */
9 #ifndef __ASM_LLSC_H
10 #define __ASM_LLSC_H
12 #if _MIPS_SZLONG == 32
13 #define SZLONG_LOG 5
14 #define SZLONG_MASK 31UL
15 #define __LL "ll "
16 #define __SC "sc "
17 #define __INS "ins "
18 #define __EXT "ext "
19 #elif _MIPS_SZLONG == 64
20 #define SZLONG_LOG 6
21 #define SZLONG_MASK 63UL
22 #define __LL "lld "
23 #define __SC "scd "
24 #define __INS "dins "
25 #define __EXT "dext "
26 #endif
28 #endif /* __ASM_LLSC_H */