1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #include <ppc-asm.h> 3 4 #define CONFIG_ALTIVEC 5 6 #define r1 1 7 8 #define R14 r14 9 #define R15 r15 10 #define R16 r16 11 #define R17 r17 12 #define R18 r18 13 #define R19 r19 14 #define R20 r20 15 #define R21 r21 16 #define R22 r22 17 #define R29 r29 18 #define R30 r30 19 #define R31 r31 20 21 #define STACKFRAMESIZE 256 22 #define STK_REG(i) (112 + ((i)-14)*8) 23 24 #define _GLOBAL(A) FUNC_START(test_ ## A) 25 #define _GLOBAL_TOC(A) _GLOBAL(A) 26 27 #define PPC_MTOCRF(A, B) mtocrf A, B 28 29 #define EX_TABLE(x, y) 30 31 FUNC_START(enter_vmx_usercopy) 32 li r3,1 33 blr 34 35 FUNC_START(exit_vmx_usercopy) 36 li r3,0 37 blr 38 39 FUNC_START(enter_vmx_copy) 40 li r3,1 41 blr 42 43 FUNC_START(exit_vmx_copy) 44 blr 45 46 FUNC_START(memcpy_power7) 47 blr 48 49 FUNC_START(__copy_tofrom_user_power7) 50 blr 51 52 FUNC_START(__copy_tofrom_user_base) 53 blr 54 55 #define BEGIN_FTR_SECTION 56 #define FTR_SECTION_ELSE 57 #define ALT_FTR_SECTION_END_IFCLR(x) 58 #define ALT_FTR_SECTION_END(x, y) 59 #define END_FTR_SECTION_IFCLR(x) 60