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