summaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v32/kernel/signal.c
diff options
context:
space:
mode:
authorAl Viro2012-12-23 08:07:30 +0100
committerAl Viro2013-02-04 00:15:52 +0100
commitd970e42897525adc836207b44ef64347e59d613e (patch)
tree3293ef9b4c11fc48345cd7a0c316c881acd9c910 /arch/cris/arch-v32/kernel/signal.c
parenttake sys_rt_sigsuspend() prototype to linux/syscalls.h (diff)
downloadkernel-qcow2-linux-d970e42897525adc836207b44ef64347e59d613e.tar.gz
kernel-qcow2-linux-d970e42897525adc836207b44ef64347e59d613e.tar.xz
kernel-qcow2-linux-d970e42897525adc836207b44ef64347e59d613e.zip
cris: switch to generic sigaltstack
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/cris/arch-v32/kernel/signal.c')
-rw-r--r--arch/cris/arch-v32/kernel/signal.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/cris/arch-v32/kernel/signal.c b/arch/cris/arch-v32/kernel/signal.c
index b60d1b65a426..168b6958e2b8 100644
--- a/arch/cris/arch-v32/kernel/signal.c
+++ b/arch/cris/arch-v32/kernel/signal.c
@@ -99,12 +99,6 @@ sys_sigaction(int signal, const struct old_sigaction *act,
return retval;
}
-int
-sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss)
-{
- return do_sigaltstack(uss, uoss, rdusp());
-}
-
static int
restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
{
@@ -209,7 +203,7 @@ sys_rt_sigreturn(long r10, long r11, long r12, long r13, long mof, long srp,
if (restore_sigcontext(regs, &frame->uc.uc_mcontext))
goto badframe;
- if (do_sigaltstack(&frame->uc.uc_stack, NULL, rdusp()) == -EFAULT)
+ if (restore_altstack(&frame->uc.uc_stack))
goto badframe;
keep_debug_flags(oldccs, oldspc, regs);