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
47880695
Commit
47880695
authored
Dec 23, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avr32: switch to generic sigaltstack
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
0aa0203f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
20 deletions
+4
-20
arch/avr32/Kconfig
arch/avr32/Kconfig
+1
-0
arch/avr32/kernel/signal.c
arch/avr32/kernel/signal.c
+2
-13
arch/avr32/kernel/syscall-stubs.S
arch/avr32/kernel/syscall-stubs.S
+0
-6
arch/avr32/kernel/syscall_table.S
arch/avr32/kernel/syscall_table.S
+1
-1
No files found.
arch/avr32/Kconfig
View file @
47880695
...
...
@@ -17,6 +17,7 @@ config AVR32
select GENERIC_CLOCKEVENTS
select HAVE_MOD_ARCH_SPECIFIC
select MODULES_USE_ELF_RELA
select GENERIC_SIGALTSTACK
help
AVR32 is a high-performance 32-bit RISC microprocessor core,
designed for cost-sensitive embedded applications, with particular
...
...
arch/avr32/kernel/signal.c
View file @
47880695
...
...
@@ -21,12 +21,6 @@
#include <asm/ucontext.h>
#include <asm/syscalls.h>
asmlinkage
int
sys_sigaltstack
(
const
stack_t
__user
*
uss
,
stack_t
__user
*
uoss
,
struct
pt_regs
*
regs
)
{
return
do_sigaltstack
(
uss
,
uoss
,
regs
->
sp
);
}
struct
rt_sigframe
{
struct
siginfo
info
;
...
...
@@ -91,7 +85,7 @@ asmlinkage int sys_rt_sigreturn(struct pt_regs *regs)
if
(
restore_sigcontext
(
regs
,
&
frame
->
uc
.
uc_mcontext
))
goto
badframe
;
if
(
do_sigaltstack
(
&
frame
->
uc
.
uc_stack
,
NULL
,
regs
->
sp
)
==
-
EFAULT
)
if
(
restore_altstack
(
&
frame
->
uc
.
uc_stack
)
)
goto
badframe
;
pr_debug
(
"Context restored: pc = %08lx, lr = %08lx, sp = %08lx
\n
"
,
...
...
@@ -175,12 +169,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
/* Set up the ucontext */
err
|=
__put_user
(
0
,
&
frame
->
uc
.
uc_flags
);
err
|=
__put_user
(
NULL
,
&
frame
->
uc
.
uc_link
);
err
|=
__put_user
((
void
__user
*
)
current
->
sas_ss_sp
,
&
frame
->
uc
.
uc_stack
.
ss_sp
);
err
|=
__put_user
(
sas_ss_flags
(
regs
->
sp
),
&
frame
->
uc
.
uc_stack
.
ss_flags
);
err
|=
__put_user
(
current
->
sas_ss_size
,
&
frame
->
uc
.
uc_stack
.
ss_size
);
err
|=
__save_altstack
(
&
frame
->
uc
.
uc_stack
,
regs
->
sp
);
err
|=
setup_sigcontext
(
&
frame
->
uc
.
uc_mcontext
,
regs
);
err
|=
__copy_to_user
(
&
frame
->
uc
.
uc_sigmask
,
set
,
sizeof
(
*
set
));
...
...
arch/avr32/kernel/syscall-stubs.S
View file @
47880695
...
...
@@ -20,12 +20,6 @@ __sys_rt_sigsuspend:
mov
r10
,
sp
rjmp
sys_rt_sigsuspend
.
global
__sys_sigaltstack
.
type
__sys_sigaltstack
,
@
function
__sys_sigaltstack
:
mov
r10
,
sp
rjmp
sys_sigaltstack
.
global
__sys_rt_sigreturn
.
type
__sys_rt_sigreturn
,
@
function
__sys_rt_sigreturn
:
...
...
arch/avr32/kernel/syscall_table.S
View file @
47880695
...
...
@@ -115,7 +115,7 @@ sys_call_table:
.
long
sys_statfs
.
long
sys_fstatfs
/*
100
*/
.
long
sys_vhangup
.
long
__
sys_sigaltstack
.
long
sys_sigaltstack
.
long
sys_syslog
.
long
sys_setitimer
.
long
sys_getitimer
/*
105
*/
...
...
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