1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __SELFTESTS_POWERPC_PPC_ASM_H
3 #define __SELFTESTS_POWERPC_PPC_ASM_H
23 #define STACKFRAMESIZE 256
24 #define STK_REG(i) (112 + ((i)-14)*8)
26 #define _GLOBAL(A) FUNC_START(test_ ## A)
27 #define _GLOBAL_TOC(A) _GLOBAL(A)
28 #define _GLOBAL_TOC_KASAN(A) _GLOBAL(A)
30 #define PPC_MTOCRF(A, B) mtocrf A, B
32 #define EX_TABLE(x, y) \
33 .section __ex_table,"a"; \
37 #define BEGIN_FTR_SECTION .if test_feature
38 #define FTR_SECTION_ELSE .else
39 #define ALT_FTR_SECTION_END_IFCLR(x) .endif
40 #define ALT_FTR_SECTION_END_IFSET(x) .endif
41 #define ALT_FTR_SECTION_END(x, y) .endif
42 #define END_FTR_SECTION_IFCLR(x) .endif
43 #define END_FTR_SECTION_IFSET(x) .endif
45 /* Default to taking the first of any alternative feature sections */
48 #endif /* __SELFTESTS_POWERPC_PPC_ASM_H */