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
9ee05bb6
Commit
9ee05bb6
authored
Dec 05, 2015
by
Yoshinori Sato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h8300: signal stack fix
Signed-off-by:
Yoshinori Sato
<
ysato@users.sourceforge.jp
>
parent
42b510eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
arch/h8300/kernel/signal.c
arch/h8300/kernel/signal.c
+4
-4
No files found.
arch/h8300/kernel/signal.c
View file @
9ee05bb6
...
@@ -95,7 +95,7 @@ restore_sigcontext(struct sigcontext *usc, int *pd0)
...
@@ -95,7 +95,7 @@ restore_sigcontext(struct sigcontext *usc, int *pd0)
regs
->
ccr
|=
ccr
;
regs
->
ccr
|=
ccr
;
regs
->
orig_er0
=
-
1
;
/* disable syscall checks */
regs
->
orig_er0
=
-
1
;
/* disable syscall checks */
err
|=
__get_user
(
usp
,
&
usc
->
sc_usp
);
err
|=
__get_user
(
usp
,
&
usc
->
sc_usp
);
wrusp
(
usp
)
;
regs
->
sp
=
usp
;
err
|=
__get_user
(
er0
,
&
usc
->
sc_er0
);
err
|=
__get_user
(
er0
,
&
usc
->
sc_er0
);
*
pd0
=
er0
;
*
pd0
=
er0
;
...
@@ -180,7 +180,7 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
...
@@ -180,7 +180,7 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
return
-
EFAULT
;
return
-
EFAULT
;
/* Set up to return from userspace. */
/* Set up to return from userspace. */
ret
=
frame
->
retcode
;
ret
=
(
unsigned
char
*
)
&
frame
->
retcode
;
if
(
ksig
->
ka
.
sa
.
sa_flags
&
SA_RESTORER
)
if
(
ksig
->
ka
.
sa
.
sa_flags
&
SA_RESTORER
)
ret
=
(
unsigned
char
*
)(
ksig
->
ka
.
sa
.
sa_restorer
);
ret
=
(
unsigned
char
*
)(
ksig
->
ka
.
sa
.
sa_restorer
);
else
{
else
{
...
@@ -196,8 +196,8 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
...
@@ -196,8 +196,8 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set,
return
-
EFAULT
;
return
-
EFAULT
;
/* Set up registers for signal handler */
/* Set up registers for signal handler */
wrusp
((
unsigned
long
)
frame
)
;
regs
->
sp
=
(
unsigned
long
)
frame
;
regs
->
pc
=
(
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
;
regs
->
pc
=
(
unsigned
long
)
ksig
->
ka
.
sa
.
sa_handler
;
regs
->
er0
=
ksig
->
sig
;
regs
->
er0
=
ksig
->
sig
;
regs
->
er1
=
(
unsigned
long
)
&
(
frame
->
info
);
regs
->
er1
=
(
unsigned
long
)
&
(
frame
->
info
);
regs
->
er2
=
(
unsigned
long
)
&
frame
->
uc
;
regs
->
er2
=
(
unsigned
long
)
&
frame
->
uc
;
...
...
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