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
b30c7d50
Commit
b30c7d50
authored
Dec 23, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mn10300: switch to generic sigaltstack
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
0aa0203f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
arch/mn10300/Kconfig
arch/mn10300/Kconfig
+1
-0
arch/mn10300/kernel/signal.c
arch/mn10300/kernel/signal.c
+2
-13
No files found.
arch/mn10300/Kconfig
View file @
b30c7d50
...
...
@@ -10,6 +10,7 @@ config MN10300
select HAVE_NMI_WATCHDOG if MN10300_WD_TIMER
select GENERIC_CLOCKEVENTS
select MODULES_USE_ELF_RELA
select GENERIC_SIGALTSTACK
config AM33_2
def_bool n
...
...
arch/mn10300/kernel/signal.c
View file @
b30c7d50
...
...
@@ -76,14 +76,6 @@ asmlinkage long sys_sigaction(int sig,
return
ret
;
}
/*
* set alternate signal stack syscall
*/
asmlinkage
long
sys_sigaltstack
(
const
stack_t
__user
*
uss
,
stack_t
*
uoss
)
{
return
do_sigaltstack
(
uss
,
uoss
,
current_frame
()
->
sp
);
}
/*
* do a signal return; undo the signal stack.
*/
...
...
@@ -193,8 +185,7 @@ asmlinkage long sys_rt_sigreturn(void)
if
(
restore_sigcontext
(
current_frame
(),
&
frame
->
uc
.
uc_mcontext
,
&
d0
))
goto
badframe
;
if
(
do_sigaltstack
(
&
frame
->
uc
.
uc_stack
,
NULL
,
current_frame
()
->
sp
)
==
-
EFAULT
)
if
(
restore_altstack
(
&
frame
->
uc
.
uc_stack
))
goto
badframe
;
return
d0
;
...
...
@@ -359,9 +350,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
/* create the ucontext. */
if
(
__put_user
(
0
,
&
frame
->
uc
.
uc_flags
)
||
__put_user
(
0
,
&
frame
->
uc
.
uc_link
)
||
__put_user
((
void
*
)
current
->
sas_ss_sp
,
&
frame
->
uc
.
uc_stack
.
ss_sp
)
||
__put_user
(
sas_ss_flags
(
regs
->
sp
),
&
frame
->
uc
.
uc_stack
.
ss_flags
)
||
__put_user
(
current
->
sas_ss_size
,
&
frame
->
uc
.
uc_stack
.
ss_size
)
||
__save_altstack
(
&
frame
->
uc
.
uc_stack
,
regs
->
sp
)
||
setup_sigcontext
(
&
frame
->
uc
.
uc_mcontext
,
&
frame
->
fpuctx
,
regs
,
set
->
sig
[
0
])
||
__copy_to_user
(
&
frame
->
uc
.
uc_sigmask
,
set
,
sizeof
(
*
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