.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Port on Texas Instruments TMS320C6x architecture |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com) |
---|
6 | 7 | * |
---|
7 | 8 | * Updated for 2.6.34: Mark Salter <msalter@redhat.com> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify |
---|
10 | | - * it under the terms of the GNU General Public License version 2 as |
---|
11 | | - * published by the Free Software Foundation. |
---|
12 | 9 | */ |
---|
13 | 10 | #include <linux/ptrace.h> |
---|
14 | 11 | #include <linux/tracehook.h> |
---|
.. | .. |
---|
60 | 57 | |
---|
61 | 58 | static int gpr_get(struct task_struct *target, |
---|
62 | 59 | const struct user_regset *regset, |
---|
63 | | - unsigned int pos, unsigned int count, |
---|
64 | | - void *kbuf, void __user *ubuf) |
---|
| 60 | + struct membuf to) |
---|
65 | 61 | { |
---|
66 | | - struct pt_regs *regs = task_pt_regs(target); |
---|
67 | | - |
---|
68 | | - return user_regset_copyout(&pos, &count, &kbuf, &ubuf, |
---|
69 | | - regs, |
---|
70 | | - 0, sizeof(*regs)); |
---|
| 62 | + return membuf_write(&to, task_pt_regs(target), sizeof(struct pt_regs)); |
---|
71 | 63 | } |
---|
72 | 64 | |
---|
73 | 65 | enum c6x_regset { |
---|
.. | .. |
---|
80 | 72 | .n = ELF_NGREG, |
---|
81 | 73 | .size = sizeof(u32), |
---|
82 | 74 | .align = sizeof(u32), |
---|
83 | | - .get = gpr_get, |
---|
| 75 | + .regset_get = gpr_get, |
---|
84 | 76 | }, |
---|
85 | 77 | }; |
---|
86 | 78 | |
---|