1 #include <ppc-asm.h>
2 
3 #define CONFIG_ALTIVEC
4 
5 #define r1	1
6 
7 #define vr0     0
8 #define vr1     1
9 #define vr2     2
10 #define vr3     3
11 #define vr4     4
12 #define vr5     5
13 #define vr6     6
14 #define vr7     7
15 #define vr8     8
16 #define vr9     9
17 #define vr10    10
18 #define vr11    11
19 #define vr12    12
20 #define vr13    13
21 #define vr14    14
22 #define vr15    15
23 #define vr16    16
24 #define vr17    17
25 #define vr18    18
26 #define vr19    19
27 #define vr20    20
28 #define vr21    21
29 #define vr22    22
30 #define vr23    23
31 #define vr24    24
32 #define vr25    25
33 #define vr26    26
34 #define vr27    27
35 #define vr28    28
36 #define vr29    29
37 #define vr30    30
38 #define vr31    31
39 
40 #define R14 r14
41 #define R15 r15
42 #define R16 r16
43 #define R17 r17
44 #define R18 r18
45 #define R19 r19
46 #define R20 r20
47 #define R21 r21
48 #define R22 r22
49 
50 #define STACKFRAMESIZE	256
51 #define STK_PARAM(i)	(48 + ((i)-3)*8)
52 #define STK_REG(i)	(112 + ((i)-14)*8)
53 
54 #define _GLOBAL(A) FUNC_START(test_ ## A)
55 
56 #define PPC_MTOCRF(A, B)	mtocrf A, B
57 
58 FUNC_START(enter_vmx_usercopy)
59 	li	r3,1
60 	blr
61 
62 FUNC_START(exit_vmx_usercopy)
63 	li	r3,0
64 	blr
65 
66 FUNC_START(enter_vmx_copy)
67 	li	r3,1
68 	blr
69 
70 FUNC_START(exit_vmx_copy)
71 	blr
72 
73 FUNC_START(memcpy_power7)
74 	blr
75 
76 FUNC_START(__copy_tofrom_user_power7)
77 	blr
78 
79 FUNC_START(__copy_tofrom_user_base)
80 	blr
81 
82 #define BEGIN_FTR_SECTION
83 #define FTR_SECTION_ELSE
84 #define ALT_FTR_SECTION_END_IFCLR(x)
85 #define ALT_FTR_SECTION_END(x, y)
86 #define END_FTR_SECTION_IFCLR(x)
87