summaryrefslogtreecommitdiff
path: root/arch/arc
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2014-03-05 16:26:26 +0400
committerRichard Weinberger <richard@sigma-star.at>2014-08-06 15:03:45 +0400
commit5290dd79c0219fd2b90784d66a54d00880a21520 (patch)
tree55a3ffd12505e12986cf2f1f7856ad8587e36fc6 /arch/arc
parent72f15c03977acc8f06080e6c8a91d93bfc655a65 (diff)
downloadlinux-5290dd79c0219fd2b90784d66a54d00880a21520.tar.xz
arc: Use sigsp()
Use sigsp() instead of the open coded variant. Signed-off-by: Richard Weinberger <richard@nod.at> Acked-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/kernel/signal.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arc/kernel/signal.c b/arch/arc/kernel/signal.c
index c2031e20c048..cb3142a2d40b 100644
--- a/arch/arc/kernel/signal.c
+++ b/arch/arc/kernel/signal.c
@@ -141,17 +141,13 @@ badframe:
/*
* Determine which stack to use..
*/
-static inline void __user *get_sigframe(struct k_sigaction *ka,
+static inline void __user *get_sigframe(struct ksignal *ksig,
struct pt_regs *regs,
unsigned long framesize)
{
- unsigned long sp = regs->sp;
+ unsigned long sp = sigsp(regs->sp, ksig);
void __user *frame;
- /* This is the X/Open sanctioned signal stack switching */
- if ((ka->sa.sa_flags & SA_ONSTACK) && !sas_ss_flags(sp))
- sp = current->sas_ss_sp + current->sas_ss_size;
-
/* No matter what happens, 'sp' must be word
* aligned otherwise nasty things could happen
*/
@@ -185,7 +181,7 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
unsigned int magic = 0;
int err = 0;
- sf = get_sigframe(&ksig->ka, regs, sizeof(struct rt_sigframe));
+ sf = get_sigframe(ksig, regs, sizeof(struct rt_sigframe));
if (!sf)
return 1;