aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2008-09-24 22:12:54 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-25 04:11:40 -0400
commitb94fd69827b2104a2a4d9d0bc05a8e908a937ae8 (patch)
tree1955533d010bbdc80be3ae96fac8cf52f4df37b6 /arch/x86
parent8d8c13bdb53977319593d9efc4971a4cacc8bd03 (diff)
x86: signal_64.c: introduce helper function signr_convert()
This helper function is for unification of setup_rt_frame(). No effect in binary. Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/signal_64.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/x86/kernel/signal_64.c b/arch/x86/kernel/signal_64.c
index 963236f2c3c1..c5d80024a8f3 100644
--- a/arch/x86/kernel/signal_64.c
+++ b/arch/x86/kernel/signal_64.c
@@ -281,18 +281,24 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
281/* 281/*
282 * OK, we're invoking a handler 282 * OK, we're invoking a handler
283 */ 283 */
284static int signr_convert(int sig)
285{
286 return sig;
287}
288
284static int 289static int
285setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, 290setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
286 sigset_t *set, struct pt_regs *regs) 291 sigset_t *set, struct pt_regs *regs)
287{ 292{
293 int usig = signr_convert(sig);
288 int ret; 294 int ret;
289 295
290#ifdef CONFIG_IA32_EMULATION 296#ifdef CONFIG_IA32_EMULATION
291 if (test_thread_flag(TIF_IA32)) { 297 if (test_thread_flag(TIF_IA32)) {
292 if (ka->sa.sa_flags & SA_SIGINFO) 298 if (ka->sa.sa_flags & SA_SIGINFO)
293 ret = ia32_setup_rt_frame(sig, ka, info, set, regs); 299 ret = ia32_setup_rt_frame(usig, ka, info, set, regs);
294 else 300 else
295 ret = ia32_setup_frame(sig, ka, set, regs); 301 ret = ia32_setup_frame(usig, ka, set, regs);
296 } else 302 } else
297#endif 303#endif
298 ret = __setup_rt_frame(sig, ka, info, set, regs); 304 ret = __setup_rt_frame(sig, ka, info, set, regs);