aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r--arch/x86/kernel/signal_32.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index b1bc90f19b9a..cf62f70cc2a6 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -491,6 +491,8 @@ static int signr_convert(int sig)
491 return sig; 491 return sig;
492} 492}
493 493
494#define is_ia32 1
495
494static int 496static int
495setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, 497setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
496 sigset_t *set, struct pt_regs *regs) 498 sigset_t *set, struct pt_regs *regs)
@@ -499,10 +501,13 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
499 int ret; 501 int ret;
500 502
501 /* Set up the stack frame */ 503 /* Set up the stack frame */
502 if (ka->sa.sa_flags & SA_SIGINFO) 504 if (is_ia32) {
503 ret = __setup_rt_frame(usig, ka, info, set, regs); 505 if (ka->sa.sa_flags & SA_SIGINFO)
504 else 506 ret = __setup_rt_frame(usig, ka, info, set, regs);
505 ret = __setup_frame(usig, ka, set, regs); 507 else
508 ret = __setup_frame(usig, ka, set, regs);
509 } else
510 ret = __setup_rt_frame(sig, ka, info, set, regs);
506 511
507 if (ret) { 512 if (ret) {
508 force_sigsegv(sig, current); 513 force_sigsegv(sig, current);