diff options
author | Richard Weinberger <richard@nod.at> | 2014-03-05 15:32:52 +0100 |
---|---|---|
committer | Richard Weinberger <richard@sigma-star.at> | 2014-08-06 13:04:11 +0200 |
commit | c001cd21c930ce393c492565d8722bf951564986 (patch) | |
tree | 1f1363bdb3bbad95433cf200b453db87ec81da3a /arch/microblaze | |
parent | metag: Use sigsp() (diff) | |
download | linux-c001cd21c930ce393c492565d8722bf951564986.tar.xz linux-c001cd21c930ce393c492565d8722bf951564986.zip |
microblaze: Use sigsp()
Use sigsp() instead of the open coded variant.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/signal.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/microblaze/kernel/signal.c b/arch/microblaze/kernel/signal.c index 83137e868e19..8955a3829cf0 100644 --- a/arch/microblaze/kernel/signal.c +++ b/arch/microblaze/kernel/signal.c @@ -145,13 +145,10 @@ setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs, * Determine which stack to use.. */ static inline void __user * -get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size) +get_sigframe(struct ksignal *ksig, struct pt_regs *regs, size_t frame_size) { /* Default to using normal stack */ - unsigned long sp = regs->r1; - - if ((ka->sa.sa_flags & SA_ONSTACK) != 0 && !on_sig_stack(sp)) - sp = current->sas_ss_sp + current->sas_ss_size; + unsigned long sp = sigsp(regs->r1, ksig); return (void __user *)((sp - frame_size) & -8UL); } @@ -168,7 +165,7 @@ static int setup_rt_frame(struct ksignal *ksig, sigset_t *set, pte_t *ptep; #endif - frame = get_sigframe(&ksig->ka, regs, sizeof(*frame)); + frame = get_sigframe(ksig, regs, sizeof(*frame)); if (!access_ok(VERIFY_WRITE, frame, sizeof(*frame))) return -EFAULT; |