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