Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
72461997
Commit
72461997
authored
Sep 12, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Check SR.DSP bit for DSP regset validity.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
f9540ece
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
arch/sh/kernel/ptrace_32.c
arch/sh/kernel/ptrace_32.c
+9
-0
No files found.
arch/sh/kernel/ptrace_32.c
View file @
72461997
...
@@ -179,6 +179,14 @@ static int dspregs_set(struct task_struct *target,
...
@@ -179,6 +179,14 @@ static int dspregs_set(struct task_struct *target,
return
ret
;
return
ret
;
}
}
static
int
dspregs_active
(
struct
task_struct
*
target
,
const
struct
user_regset
*
regset
)
{
struct
pt_regs
*
regs
=
task_pt_regs
(
target
);
return
regs
->
sr
&
SR_DSP
?
regset
->
n
:
0
;
}
#endif
#endif
/*
/*
...
@@ -213,6 +221,7 @@ static const struct user_regset sh_regsets[] = {
...
@@ -213,6 +221,7 @@ static const struct user_regset sh_regsets[] = {
.
align
=
sizeof
(
long
),
.
align
=
sizeof
(
long
),
.
get
=
dspregs_get
,
.
get
=
dspregs_get
,
.
set
=
dspregs_set
,
.
set
=
dspregs_set
,
.
active
=
dspregs_active
,
},
},
#endif
#endif
};
};
...
...
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