diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-09-24 22:13:29 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-25 04:11:42 -0400 |
commit | 4694d2391221e14fe671602fe34ea7f24f5a561f (patch) | |
tree | f4cdd407efbe06a618f9a194c624f1804dd1c273 /arch/x86/kernel/signal_32.c | |
parent | 455edbc423db282bb64dec2d7c8968498ea8e619 (diff) |
x86: signal_32.c: introduce macro ia32_setup_frame and ia32_setup_rt_frame
Make 32-bit setup_rt_frame() look like 64-bit version for unification.
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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index cf62f70cc2a6..4337cd510f0a 100644 --- a/arch/x86/kernel/signal_32.c +++ b/arch/x86/kernel/signal_32.c | |||
@@ -492,6 +492,8 @@ static int signr_convert(int sig) | |||
492 | } | 492 | } |
493 | 493 | ||
494 | #define is_ia32 1 | 494 | #define is_ia32 1 |
495 | #define ia32_setup_frame __setup_frame | ||
496 | #define ia32_setup_rt_frame __setup_rt_frame | ||
495 | 497 | ||
496 | static int | 498 | static int |
497 | setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | 499 | setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, |
@@ -503,9 +505,9 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
503 | /* Set up the stack frame */ | 505 | /* Set up the stack frame */ |
504 | if (is_ia32) { | 506 | if (is_ia32) { |
505 | if (ka->sa.sa_flags & SA_SIGINFO) | 507 | if (ka->sa.sa_flags & SA_SIGINFO) |
506 | ret = __setup_rt_frame(usig, ka, info, set, regs); | 508 | ret = ia32_setup_rt_frame(usig, ka, info, set, regs); |
507 | else | 509 | else |
508 | ret = __setup_frame(usig, ka, set, regs); | 510 | ret = ia32_setup_frame(usig, ka, set, regs); |
509 | } else | 511 | } else |
510 | ret = __setup_rt_frame(sig, ka, info, set, regs); | 512 | ret = __setup_rt_frame(sig, ka, info, set, regs); |
511 | 513 | ||