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
Kirill Smelkov
linux
Commits
1b5b456e
Commit
1b5b456e
authored
Jun 16, 2020
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nds32: switch to ->regset_get()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6bda7688
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
arch/nds32/kernel/ptrace.c
arch/nds32/kernel/ptrace.c
+4
-5
No files found.
arch/nds32/kernel/ptrace.c
View file @
1b5b456e
...
...
@@ -13,11 +13,10 @@ enum nds32_regset {
static
int
gpr_get
(
struct
task_struct
*
target
,
const
struct
user_regset
*
regset
,
unsigned
int
pos
,
unsigned
int
count
,
void
*
kbuf
,
void
__user
*
ubuf
)
struct
membuf
to
)
{
struct
user_pt_regs
*
uregs
=
&
task_pt_regs
(
target
)
->
user_regs
;
return
user_regset_copyout
(
&
pos
,
&
count
,
&
kbuf
,
&
ubuf
,
uregs
,
0
,
-
1
);
return
membuf_write
(
&
to
,
&
task_pt_regs
(
target
)
->
user_regs
,
sizeof
(
struct
user_pt_regs
)
);
}
static
int
gpr_set
(
struct
task_struct
*
target
,
const
struct
user_regset
*
regset
,
...
...
@@ -41,7 +40,7 @@ static const struct user_regset nds32_regsets[] = {
.
n
=
sizeof
(
struct
user_pt_regs
)
/
sizeof
(
u32
),
.
size
=
sizeof
(
elf_greg_t
),
.
align
=
sizeof
(
elf_greg_t
),
.
get
=
gpr_get
,
.
regset_
get
=
gpr_get
,
.
set
=
gpr_set
}
};
...
...
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