xref: /linux/arch/csky/abiv2/sysdep.h (revision d0034a7a4ac7fae708146ac0059b9c47a1543f0d)
1*c5af58b7SGuo Ren /* SPDX-License-Identifier: GPL-2.0 */
2*c5af58b7SGuo Ren 
3*c5af58b7SGuo Ren #ifndef __SYSDEP_H
4*c5af58b7SGuo Ren #define __SYSDEP_H
5*c5af58b7SGuo Ren 
6*c5af58b7SGuo Ren #ifdef __ASSEMBLER__
7*c5af58b7SGuo Ren 
8*c5af58b7SGuo Ren #if defined(__CK860__)
9*c5af58b7SGuo Ren #define LABLE_ALIGN	\
10*c5af58b7SGuo Ren 	.balignw 16, 0x6c03
11*c5af58b7SGuo Ren 
12*c5af58b7SGuo Ren #define PRE_BNEZAD(R)
13*c5af58b7SGuo Ren 
14*c5af58b7SGuo Ren #define BNEZAD(R, L)	\
15*c5af58b7SGuo Ren 	bnezad	R, L
16*c5af58b7SGuo Ren #else
17*c5af58b7SGuo Ren #define LABLE_ALIGN	\
18*c5af58b7SGuo Ren 	.balignw 8, 0x6c03
19*c5af58b7SGuo Ren 
20*c5af58b7SGuo Ren #define PRE_BNEZAD(R)	\
21*c5af58b7SGuo Ren 	subi	R, 1
22*c5af58b7SGuo Ren 
23*c5af58b7SGuo Ren #define BNEZAD(R, L)	\
24*c5af58b7SGuo Ren 	bnez	R, L
25*c5af58b7SGuo Ren #endif
26*c5af58b7SGuo Ren 
27*c5af58b7SGuo Ren #endif
28*c5af58b7SGuo Ren 
29*c5af58b7SGuo Ren #endif
30