@@ -63,35 +63,31 @@ enum powerpc_regset {
63
63
64
64
/* ptrace-(no)vsx */
65
65
66
- int fpr_get (struct task_struct * target , const struct user_regset * regset ,
67
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
66
+ user_regset_get2_fn fpr_get ;
68
67
int fpr_set (struct task_struct * target , const struct user_regset * regset ,
69
68
unsigned int pos , unsigned int count ,
70
69
const void * kbuf , const void __user * ubuf );
71
70
72
71
/* ptrace-vsx */
73
72
74
73
int vsr_active (struct task_struct * target , const struct user_regset * regset );
75
- int vsr_get (struct task_struct * target , const struct user_regset * regset ,
76
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
74
+ user_regset_get2_fn vsr_get ;
77
75
int vsr_set (struct task_struct * target , const struct user_regset * regset ,
78
76
unsigned int pos , unsigned int count ,
79
77
const void * kbuf , const void __user * ubuf );
80
78
81
79
/* ptrace-altivec */
82
80
83
81
int vr_active (struct task_struct * target , const struct user_regset * regset );
84
- int vr_get (struct task_struct * target , const struct user_regset * regset ,
85
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
82
+ user_regset_get2_fn vr_get ;
86
83
int vr_set (struct task_struct * target , const struct user_regset * regset ,
87
84
unsigned int pos , unsigned int count ,
88
85
const void * kbuf , const void __user * ubuf );
89
86
90
87
/* ptrace-spe */
91
88
92
89
int evr_active (struct task_struct * target , const struct user_regset * regset );
93
- int evr_get (struct task_struct * target , const struct user_regset * regset ,
94
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
90
+ user_regset_get2_fn evr_get ;
95
91
int evr_set (struct task_struct * target , const struct user_regset * regset ,
96
92
unsigned int pos , unsigned int count ,
97
93
const void * kbuf , const void __user * ubuf );
@@ -100,9 +96,8 @@ int evr_set(struct task_struct *target, const struct user_regset *regset,
100
96
101
97
int gpr32_get_common (struct task_struct * target ,
102
98
const struct user_regset * regset ,
103
- unsigned int pos , unsigned int count ,
104
- void * kbuf , void __user * ubuf ,
105
- unsigned long * regs );
99
+ struct membuf to ,
100
+ unsigned long * regs );
106
101
int gpr32_set_common (struct task_struct * target ,
107
102
const struct user_regset * regset ,
108
103
unsigned int pos , unsigned int count ,
@@ -118,55 +113,46 @@ static inline void flush_tmregs_to_thread(struct task_struct *tsk) { }
118
113
#endif
119
114
120
115
int tm_cgpr_active (struct task_struct * target , const struct user_regset * regset );
121
- int tm_cgpr_get (struct task_struct * target , const struct user_regset * regset ,
122
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
116
+ user_regset_get2_fn tm_cgpr_get ;
123
117
int tm_cgpr_set (struct task_struct * target , const struct user_regset * regset ,
124
118
unsigned int pos , unsigned int count ,
125
119
const void * kbuf , const void __user * ubuf );
126
120
int tm_cfpr_active (struct task_struct * target , const struct user_regset * regset );
127
- int tm_cfpr_get (struct task_struct * target , const struct user_regset * regset ,
128
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
121
+ user_regset_get2_fn tm_cfpr_get ;
129
122
int tm_cfpr_set (struct task_struct * target , const struct user_regset * regset ,
130
123
unsigned int pos , unsigned int count ,
131
124
const void * kbuf , const void __user * ubuf );
132
125
int tm_cvmx_active (struct task_struct * target , const struct user_regset * regset );
133
- int tm_cvmx_get (struct task_struct * target , const struct user_regset * regset ,
134
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
126
+ user_regset_get2_fn tm_cvmx_get ;
135
127
int tm_cvmx_set (struct task_struct * target , const struct user_regset * regset ,
136
128
unsigned int pos , unsigned int count ,
137
129
const void * kbuf , const void __user * ubuf );
138
130
int tm_cvsx_active (struct task_struct * target , const struct user_regset * regset );
139
- int tm_cvsx_get (struct task_struct * target , const struct user_regset * regset ,
140
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
131
+ user_regset_get2_fn tm_cvsx_get ;
141
132
int tm_cvsx_set (struct task_struct * target , const struct user_regset * regset ,
142
133
unsigned int pos , unsigned int count ,
143
134
const void * kbuf , const void __user * ubuf );
144
135
int tm_spr_active (struct task_struct * target , const struct user_regset * regset );
145
- int tm_spr_get (struct task_struct * target , const struct user_regset * regset ,
146
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
136
+ user_regset_get2_fn tm_spr_get ;
147
137
int tm_spr_set (struct task_struct * target , const struct user_regset * regset ,
148
138
unsigned int pos , unsigned int count ,
149
139
const void * kbuf , const void __user * ubuf );
150
140
int tm_tar_active (struct task_struct * target , const struct user_regset * regset );
151
- int tm_tar_get (struct task_struct * target , const struct user_regset * regset ,
152
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
141
+ user_regset_get2_fn tm_tar_get ;
153
142
int tm_tar_set (struct task_struct * target , const struct user_regset * regset ,
154
143
unsigned int pos , unsigned int count ,
155
144
const void * kbuf , const void __user * ubuf );
156
145
int tm_ppr_active (struct task_struct * target , const struct user_regset * regset );
157
- int tm_ppr_get (struct task_struct * target , const struct user_regset * regset ,
158
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
146
+ user_regset_get2_fn tm_ppr_get ;
159
147
int tm_ppr_set (struct task_struct * target , const struct user_regset * regset ,
160
148
unsigned int pos , unsigned int count ,
161
149
const void * kbuf , const void __user * ubuf );
162
150
int tm_dscr_active (struct task_struct * target , const struct user_regset * regset );
163
- int tm_dscr_get (struct task_struct * target , const struct user_regset * regset ,
164
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
151
+ user_regset_get2_fn tm_dscr_get ;
165
152
int tm_dscr_set (struct task_struct * target , const struct user_regset * regset ,
166
153
unsigned int pos , unsigned int count ,
167
154
const void * kbuf , const void __user * ubuf );
168
- int tm_cgpr32_get (struct task_struct * target , const struct user_regset * regset ,
169
- unsigned int pos , unsigned int count , void * kbuf , void __user * ubuf );
155
+ user_regset_get2_fn tm_cgpr32_get ;
170
156
int tm_cgpr32_set (struct task_struct * target , const struct user_regset * regset ,
171
157
unsigned int pos , unsigned int count ,
172
158
const void * kbuf , const void __user * ubuf );
0 commit comments