Skip to content

Commit 1b5b456

Browse files
author
Al Viro
committed
nds32: switch to ->regset_get()
Signed-off-by: Al Viro <[email protected]>
1 parent 6bda768 commit 1b5b456

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

arch/nds32/kernel/ptrace.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ enum nds32_regset {
1313

1414
static int gpr_get(struct task_struct *target,
1515
const struct user_regset *regset,
16-
unsigned int pos, unsigned int count,
17-
void *kbuf, void __user * ubuf)
16+
struct membuf to)
1817
{
19-
struct user_pt_regs *uregs = &task_pt_regs(target)->user_regs;
20-
return user_regset_copyout(&pos, &count, &kbuf, &ubuf, uregs, 0, -1);
18+
return membuf_write(&to, &task_pt_regs(target)->user_regs,
19+
sizeof(struct user_pt_regs));
2120
}
2221

2322
static int gpr_set(struct task_struct *target, const struct user_regset *regset,
@@ -41,7 +40,7 @@ static const struct user_regset nds32_regsets[] = {
4140
.n = sizeof(struct user_pt_regs) / sizeof(u32),
4241
.size = sizeof(elf_greg_t),
4342
.align = sizeof(elf_greg_t),
44-
.get = gpr_get,
43+
.regset_get = gpr_get,
4544
.set = gpr_set}
4645
};
4746

0 commit comments

Comments
 (0)