Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c7a0faa2
Commit
c7a0faa2
authored
Jun 16, 2020
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c6x: switch to ->regset_get()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
4ff8a356
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
arch/c6x/kernel/ptrace.c
arch/c6x/kernel/ptrace.c
+3
-8
No files found.
arch/c6x/kernel/ptrace.c
View file @
c7a0faa2
...
@@ -57,14 +57,9 @@ static inline int put_reg(struct task_struct *task,
...
@@ -57,14 +57,9 @@ static inline int put_reg(struct task_struct *task,
static
int
gpr_get
(
struct
task_struct
*
target
,
static
int
gpr_get
(
struct
task_struct
*
target
,
const
struct
user_regset
*
regset
,
const
struct
user_regset
*
regset
,
unsigned
int
pos
,
unsigned
int
count
,
struct
membuf
to
)
void
*
kbuf
,
void
__user
*
ubuf
)
{
{
struct
pt_regs
*
regs
=
task_pt_regs
(
target
);
return
membuf_write
(
&
to
,
task_pt_regs
(
target
),
sizeof
(
struct
pt_regs
));
return
user_regset_copyout
(
&
pos
,
&
count
,
&
kbuf
,
&
ubuf
,
regs
,
0
,
sizeof
(
*
regs
));
}
}
enum
c6x_regset
{
enum
c6x_regset
{
...
@@ -77,7 +72,7 @@ static const struct user_regset c6x_regsets[] = {
...
@@ -77,7 +72,7 @@ static const struct user_regset c6x_regsets[] = {
.
n
=
ELF_NGREG
,
.
n
=
ELF_NGREG
,
.
size
=
sizeof
(
u32
),
.
size
=
sizeof
(
u32
),
.
align
=
sizeof
(
u32
),
.
align
=
sizeof
(
u32
),
.
get
=
gpr_get
,
.
regset_
get
=
gpr_get
,
},
},
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment