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
4e5e7ea4
Commit
4e5e7ea4
authored
Jun 16, 2020
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h8300: switch to ->regset_get()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
f04b2b7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
arch/h8300/kernel/ptrace.c
arch/h8300/kernel/ptrace.c
+6
-11
No files found.
arch/h8300/kernel/ptrace.c
View file @
4e5e7ea4
...
@@ -87,20 +87,15 @@ int h8300_put_reg(struct task_struct *task, int regno, unsigned long data)
...
@@ -87,20 +87,15 @@ int h8300_put_reg(struct task_struct *task, int regno, unsigned long data)
static
int
regs_get
(
struct
task_struct
*
target
,
static
int
regs_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
)
{
{
int
r
;
int
r
;
struct
user_regs_struct
regs
;
long
*
reg
=
(
long
*
)
&
regs
;
/* build user regs in buffer */
BUILD_BUG_ON
(
sizeof
(
struct
user_regs_struct
)
%
sizeof
(
long
)
!=
0
);
BUILD_BUG_ON
(
sizeof
(
regs
)
%
sizeof
(
long
)
!=
0
);
for
(
r
=
0
;
r
<
ELF_NGREG
;
r
++
)
for
(
r
=
0
;
r
<
sizeof
(
regs
)
/
sizeof
(
long
);
r
++
)
membuf_store
(
&
to
,
h8300_get_reg
(
target
,
r
));
*
reg
++
=
h8300_get_reg
(
target
,
r
);
return
user_regset_copyout
(
&
pos
,
&
count
,
&
kbuf
,
&
ubuf
,
return
0
;
&
regs
,
0
,
sizeof
(
regs
));
}
}
static
int
regs_set
(
struct
task_struct
*
target
,
static
int
regs_set
(
struct
task_struct
*
target
,
...
@@ -139,7 +134,7 @@ static const struct user_regset h8300_regsets[] = {
...
@@ -139,7 +134,7 @@ static const struct user_regset h8300_regsets[] = {
.
n
=
ELF_NGREG
,
.
n
=
ELF_NGREG
,
.
size
=
sizeof
(
long
),
.
size
=
sizeof
(
long
),
.
align
=
sizeof
(
long
),
.
align
=
sizeof
(
long
),
.
get
=
regs_get
,
.
regset_
get
=
regs_get
,
.
set
=
regs_set
,
.
set
=
regs_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