Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / arch / arm64 / include / asm / gpr-num.h
blob05da4a7c5788f8783dc1f5968665591cfc700084
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __ASM_GPR_NUM_H
3 #define __ASM_GPR_NUM_H
5 #ifdef __ASSEMBLY__
7 .irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30
8 .equ .L__gpr_num_x\num, \num
9 .equ .L__gpr_num_w\num, \num
10 .endr
11 .equ .L__gpr_num_xzr, 31
12 .equ .L__gpr_num_wzr, 31
14 #else /* __ASSEMBLY__ */
16 #define __DEFINE_ASM_GPR_NUMS \
17 " .irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30\n" \
18 " .equ .L__gpr_num_x\\num, \\num\n" \
19 " .equ .L__gpr_num_w\\num, \\num\n" \
20 " .endr\n" \
21 " .equ .L__gpr_num_xzr, 31\n" \
22 " .equ .L__gpr_num_wzr, 31\n"
24 #endif /* __ASSEMBLY__ */
26 #endif /* __ASM_GPR_NUM_H */