hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/c6x/kernel/ptrace.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Port on Texas Instruments TMS320C6x architecture
34 *
....@@ -5,10 +6,6 @@
56 * Author: Aurelien Jacquiot (aurelien.jacquiot@jaluna.com)
67 *
78 * 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.
129 */
1310 #include <linux/ptrace.h>
1411 #include <linux/tracehook.h>
....@@ -60,14 +57,9 @@
6057
6158 static int gpr_get(struct task_struct *target,
6259 const struct user_regset *regset,
63
- unsigned int pos, unsigned int count,
64
- void *kbuf, void __user *ubuf)
60
+ struct membuf to)
6561 {
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));
7163 }
7264
7365 enum c6x_regset {
....@@ -80,7 +72,7 @@
8072 .n = ELF_NGREG,
8173 .size = sizeof(u32),
8274 .align = sizeof(u32),
83
- .get = gpr_get,
75
+ .regset_get = gpr_get,
8476 },
8577 };
8678