1
2
3
4
5
6
7
8
9#ifndef __ASM_LLSC_H
10#define __ASM_LLSC_H
11
12#include <asm/isa-rev.h>
13
14#if _MIPS_SZLONG == 32
15#define __LL "ll "
16#define __SC "sc "
17#define __INS "ins "
18#define __EXT "ext "
19#elif _MIPS_SZLONG == 64
20#define __LL "lld "
21#define __SC "scd "
22#define __INS "dins "
23#define __EXT "dext "
24#endif
25
26
27
28
29
30
31#ifdef CONFIG_WAR_R10000_LLSC
32# define __SC_BEQZ "beqzl "
33#elif MIPS_ISA_REV >= 6
34# define __SC_BEQZ "beqzc "
35#else
36# define __SC_BEQZ "beqz "
37#endif
38
39#endif
40