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
6 * Macros for 32/64-bit neutral inline assembler
12 #include <asm/isa-rev.h>
14 #if _MIPS_SZLONG == 32
19 #elif _MIPS_SZLONG == 64
27 * Using a branch-likely instruction to check the result of an sc instruction
28 * works around a bug present in R10000 CPUs prior to revision 3.0 that could
29 * cause ll-sc sequences to execute non-atomically.
31 #ifdef CONFIG_WAR_R10000_LLSC
32 # define __SC_BEQZ "beqzl "
33 #elif MIPS_ISA_REV >= 6
34 # define __SC_BEQZ "beqzc "
36 # define __SC_BEQZ "beqz "
39 #endif /* __ASM_LLSC_H */