cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

gpr-num.h (708B)


      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 */