Skip to content

Commit 0359c94

Browse files
jingzhangosoupton
authored andcommitted
tools headers arm64: Update sysreg.h with kernel sources
The users of sysreg.h (perf, KVM selftests) are now generating the necessary sysreg-defs.h; sync sysreg.h with the kernel sources and fix the KVM selftests that use macros which suffered a rename. Signed-off-by: Jing Zhang <[email protected]> Acked-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent 9697d84 commit 0359c94

File tree

6 files changed

+232
-661
lines changed

6 files changed

+232
-661
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
2+
#ifndef __ASM_GPR_NUM_H
3+
#define __ASM_GPR_NUM_H
4+
5+
#ifdef __ASSEMBLY__
6+
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
13+
14+
#else /* __ASSEMBLY__ */
15+
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"
23+
24+
#endif /* __ASSEMBLY__ */
25+
26+
#endif /* __ASM_GPR_NUM_H */

0 commit comments

Comments
 (0)