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