Skip to content

Commit c7a0faa

Browse files
author
Al Viro
committed
c6x: switch to ->regset_get()
Signed-off-by: Al Viro <[email protected]>
1 parent 4ff8a35 commit c7a0faa

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

arch/c6x/kernel/ptrace.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,9 @@ static inline int put_reg(struct task_struct *task,
5757

5858
static int gpr_get(struct task_struct *target,
5959
const struct user_regset *regset,
60-
unsigned int pos, unsigned int count,
61-
void *kbuf, void __user *ubuf)
60+
struct membuf to)
6261
{
63-
struct pt_regs *regs = task_pt_regs(target);
64-
65-
return user_regset_copyout(&pos, &count, &kbuf, &ubuf,
66-
regs,
67-
0, sizeof(*regs));
62+
return membuf_write(&to, task_pt_regs(target), sizeof(struct pt_regs));
6863
}
6964

7065
enum c6x_regset {
@@ -77,7 +72,7 @@ static const struct user_regset c6x_regsets[] = {
7772
.n = ELF_NGREG,
7873
.size = sizeof(u32),
7974
.align = sizeof(u32),
80-
.get = gpr_get,
75+
.regset_get = gpr_get,
8176
},
8277
};
8378

0 commit comments

Comments
 (0)