diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-09-24 19:13:11 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-25 10:11:41 +0200 |
commit | 455edbc423db282bb64dec2d7c8968498ea8e619 (patch) | |
tree | 8d059f1a94128d17e56caa610738767b0251ba8a /arch/x86/kernel/signal_32.c | |
parent | b94fd69827b2104a2a4d9d0bc05a8e908a937ae8 (diff) | |
download | kernel_samsung_smdk4412-455edbc423db282bb64dec2d7c8968498ea8e619.zip kernel_samsung_smdk4412-455edbc423db282bb64dec2d7c8968498ea8e619.tar.gz kernel_samsung_smdk4412-455edbc423db282bb64dec2d7c8968498ea8e619.tar.bz2 |
x86: signal: introduce helper macro is_ia32
Introduce new macro is_ia32 for unification of setup_rt_frame().
No effect in binary, compiler will optimize.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/signal_32.c')
-rw-r--r-- | arch/x86/kernel/signal_32.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index b1bc90f..cf62f70 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) return sig; } +#define is_ia32 1 + static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, sigset_t *set, struct pt_regs *regs) @@ -499,10 +501,13 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, int ret; /* Set up the stack frame */ - if (ka->sa.sa_flags & SA_SIGINFO) - ret = __setup_rt_frame(usig, ka, info, set, regs); - else - ret = __setup_frame(usig, ka, set, regs); + if (is_ia32) { + if (ka->sa.sa_flags & SA_SIGINFO) + ret = __setup_rt_frame(usig, ka, info, set, regs); + else + ret = __setup_frame(usig, ka, set, regs); + } else + ret = __setup_rt_frame(sig, ka, info, set, regs); if (ret) { force_sigsegv(sig, current); |