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
a6ea5b45
Commit
a6ea5b45
authored
Jun 16, 2020
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xtensa: switch to ->regset_get()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
bd0409a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
arch/xtensa/kernel/ptrace.c
arch/xtensa/kernel/ptrace.c
+6
-10
No files found.
arch/xtensa/kernel/ptrace.c
View file @
a6ea5b45
...
...
@@ -37,8 +37,7 @@
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
pt_regs
*
regs
=
task_pt_regs
(
target
);
struct
user_pt_regs
newregs
=
{
...
...
@@ -60,8 +59,7 @@ static int gpr_get(struct task_struct *target,
regs
->
areg
,
(
WSBITS
-
regs
->
windowbase
)
*
16
);
return
user_regset_copyout
(
&
pos
,
&
count
,
&
kbuf
,
&
ubuf
,
&
newregs
,
0
,
-
1
);
return
membuf_write
(
&
to
,
&
newregs
,
sizeof
(
newregs
));
}
static
int
gpr_set
(
struct
task_struct
*
target
,
...
...
@@ -115,8 +113,7 @@ static int gpr_set(struct task_struct *target,
static
int
tie_get
(
struct
task_struct
*
target
,
const
struct
user_regset
*
regset
,
unsigned
int
pos
,
unsigned
int
count
,
void
*
kbuf
,
void
__user
*
ubuf
)
struct
membuf
to
)
{
int
ret
;
struct
pt_regs
*
regs
=
task_pt_regs
(
target
);
...
...
@@ -141,8 +138,7 @@ static int tie_get(struct task_struct *target,
newregs
->
cp6
=
ti
->
xtregs_cp
.
cp6
;
newregs
->
cp7
=
ti
->
xtregs_cp
.
cp7
;
#endif
ret
=
user_regset_copyout
(
&
pos
,
&
count
,
&
kbuf
,
&
ubuf
,
newregs
,
0
,
-
1
);
ret
=
membuf_write
(
&
to
,
newregs
,
sizeof
(
*
newregs
));
kfree
(
newregs
);
return
ret
;
}
...
...
@@ -197,7 +193,7 @@ static const struct user_regset xtensa_regsets[] = {
.
n
=
sizeof
(
struct
user_pt_regs
)
/
sizeof
(
u32
),
.
size
=
sizeof
(
u32
),
.
align
=
sizeof
(
u32
),
.
get
=
gpr_get
,
.
regset_
get
=
gpr_get
,
.
set
=
gpr_set
,
},
[
REGSET_TIE
]
=
{
...
...
@@ -205,7 +201,7 @@ static const struct user_regset xtensa_regsets[] = {
.
n
=
sizeof
(
elf_xtregs_t
)
/
sizeof
(
u32
),
.
size
=
sizeof
(
u32
),
.
align
=
sizeof
(
u32
),
.
get
=
tie_get
,
.
regset_
get
=
tie_get
,
.
set
=
tie_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