powerpc: switch to ->regset_get()
[linux-2.6-microblaze.git] / arch / powerpc / kernel / ptrace / ptrace-spe.c
index 68b86b4..47034d0 100644 (file)
@@ -23,25 +23,17 @@ int evr_active(struct task_struct *target, const struct user_regset *regset)
 }
 
 int evr_get(struct task_struct *target, const struct user_regset *regset,
-           unsigned int pos, unsigned int count, void *kbuf, void __user *ubuf)
+           struct membuf to)
 {
-       int ret;
-
        flush_spe_to_thread(target);
 
-       ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf,
-                                 &target->thread.evr,
-                                 0, sizeof(target->thread.evr));
+       membuf_write(&to, &target->thread.evr, sizeof(target->thread.evr));
 
        BUILD_BUG_ON(offsetof(struct thread_struct, acc) + sizeof(u64) !=
                     offsetof(struct thread_struct, spefscr));
 
-       if (!ret)
-               ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf,
-                                         &target->thread.acc,
-                                         sizeof(target->thread.evr), -1);
-
-       return ret;
+       return membuf_write(&to, &target->thread.acc,
+                               sizeof(u64) + sizeof(u32));
 }
 
 int evr_set(struct task_struct *target, const struct user_regset *regset,