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
ec93ac86
Commit
ec93ac86
authored
Dec 23, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm: switch to generic sigaltstack
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
0aa0203f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
14 deletions
+4
-14
arch/arm/Kconfig
arch/arm/Kconfig
+1
-0
arch/arm/kernel/calls.S
arch/arm/kernel/calls.S
+1
-1
arch/arm/kernel/entry-common.S
arch/arm/kernel/entry-common.S
+0
-5
arch/arm/kernel/signal.c
arch/arm/kernel/signal.c
+2
-8
No files found.
arch/arm/Kconfig
View file @
ec93ac86
...
@@ -56,6 +56,7 @@ config ARM
...
@@ -56,6 +56,7 @@ config ARM
select HAVE_MOD_ARCH_SPECIFIC if ARM_UNWIND
select HAVE_MOD_ARCH_SPECIFIC if ARM_UNWIND
select MODULES_USE_ELF_REL
select MODULES_USE_ELF_REL
select CLONE_BACKWARDS
select CLONE_BACKWARDS
select GENERIC_SIGALTSTACK
help
help
The ARM series is a line of low-power-consumption RISC chip designs
The ARM series is a line of low-power-consumption RISC chip designs
licensed by ARM Ltd and targeted at embedded applications and
licensed by ARM Ltd and targeted at embedded applications and
...
...
arch/arm/kernel/calls.S
View file @
ec93ac86
...
@@ -195,7 +195,7 @@
...
@@ -195,7 +195,7 @@
CALL
(
sys_getcwd
)
CALL
(
sys_getcwd
)
CALL
(
sys_capget
)
CALL
(
sys_capget
)
/*
185
*/
CALL
(
sys_capset
)
/*
185
*/
CALL
(
sys_capset
)
CALL
(
sys_sigaltstack
_wrapper
)
CALL
(
sys_sigaltstack
)
CALL
(
sys_sendfile
)
CALL
(
sys_sendfile
)
CALL
(
sys_ni_syscall
)
/*
getpmsg
*/
CALL
(
sys_ni_syscall
)
/*
getpmsg
*/
CALL
(
sys_ni_syscall
)
/*
putpmsg
*/
CALL
(
sys_ni_syscall
)
/*
putpmsg
*/
...
...
arch/arm/kernel/entry-common.S
View file @
ec93ac86
...
@@ -514,11 +514,6 @@ sys_rt_sigreturn_wrapper:
...
@@ -514,11 +514,6 @@ sys_rt_sigreturn_wrapper:
b
sys_rt_sigreturn
b
sys_rt_sigreturn
ENDPROC
(
sys_rt_sigreturn_wrapper
)
ENDPROC
(
sys_rt_sigreturn_wrapper
)
sys_sigaltstack_wrapper
:
ldr
r2
,
[
sp
,
#
S_OFF
+
S_SP
]
b
do_sigaltstack
ENDPROC
(
sys_sigaltstack_wrapper
)
sys_statfs64_wrapper
:
sys_statfs64_wrapper
:
teq
r1
,
#
88
teq
r1
,
#
88
moveq
r1
,
#
84
moveq
r1
,
#
84
...
...
arch/arm/kernel/signal.c
View file @
ec93ac86
...
@@ -300,7 +300,7 @@ asmlinkage int sys_rt_sigreturn(struct pt_regs *regs)
...
@@ -300,7 +300,7 @@ asmlinkage int sys_rt_sigreturn(struct pt_regs *regs)
if
(
restore_sigframe
(
regs
,
&
frame
->
sig
))
if
(
restore_sigframe
(
regs
,
&
frame
->
sig
))
goto
badframe
;
goto
badframe
;
if
(
do_sigaltstack
(
&
frame
->
sig
.
uc
.
uc_stack
,
NULL
,
regs
->
ARM_sp
)
==
-
EFAULT
)
if
(
restore_altstack
(
&
frame
->
sig
.
uc
.
uc_stack
)
)
goto
badframe
;
goto
badframe
;
return
regs
->
ARM_r0
;
return
regs
->
ARM_r0
;
...
@@ -486,7 +486,6 @@ setup_rt_frame(int usig, struct k_sigaction *ka, siginfo_t *info,
...
@@ -486,7 +486,6 @@ setup_rt_frame(int usig, struct k_sigaction *ka, siginfo_t *info,
sigset_t
*
set
,
struct
pt_regs
*
regs
)
sigset_t
*
set
,
struct
pt_regs
*
regs
)
{
{
struct
rt_sigframe
__user
*
frame
=
get_sigframe
(
ka
,
regs
,
sizeof
(
*
frame
));
struct
rt_sigframe
__user
*
frame
=
get_sigframe
(
ka
,
regs
,
sizeof
(
*
frame
));
stack_t
stack
;
int
err
=
0
;
int
err
=
0
;
if
(
!
frame
)
if
(
!
frame
)
...
@@ -497,12 +496,7 @@ setup_rt_frame(int usig, struct k_sigaction *ka, siginfo_t *info,
...
@@ -497,12 +496,7 @@ setup_rt_frame(int usig, struct k_sigaction *ka, siginfo_t *info,
__put_user_error
(
0
,
&
frame
->
sig
.
uc
.
uc_flags
,
err
);
__put_user_error
(
0
,
&
frame
->
sig
.
uc
.
uc_flags
,
err
);
__put_user_error
(
NULL
,
&
frame
->
sig
.
uc
.
uc_link
,
err
);
__put_user_error
(
NULL
,
&
frame
->
sig
.
uc
.
uc_link
,
err
);
memset
(
&
stack
,
0
,
sizeof
(
stack
));
err
|=
__save_altstack
(
&
frame
->
sig
.
uc
.
uc_stack
,
regs
->
ARM_sp
);
stack
.
ss_sp
=
(
void
__user
*
)
current
->
sas_ss_sp
;
stack
.
ss_flags
=
sas_ss_flags
(
regs
->
ARM_sp
);
stack
.
ss_size
=
current
->
sas_ss_size
;
err
|=
__copy_to_user
(
&
frame
->
sig
.
uc
.
uc_stack
,
&
stack
,
sizeof
(
stack
));
err
|=
setup_sigframe
(
&
frame
->
sig
,
regs
,
set
);
err
|=
setup_sigframe
(
&
frame
->
sig
,
regs
,
set
);
if
(
err
==
0
)
if
(
err
==
0
)
err
=
setup_return
(
regs
,
ka
,
frame
->
sig
.
retcode
,
frame
,
usig
);
err
=
setup_return
(
regs
,
ka
,
frame
->
sig
.
retcode
,
frame
,
usig
);
...
...
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