aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/signal_64.c
diff options
context:
space:
mode:
authorGravatar Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> 2008-10-29 18:46:07 -0700
committerGravatar Ingo Molnar <mingo@elte.hu> 2008-10-30 11:43:48 +0100
commitcabf503588961d202a33b3fd872767e9f6abbef7 (patch)
tree66c97336d9929113a269599267628237e9b3f5f9 /arch/x86/kernel/signal_64.c
parentx86: signal: cosmetic unification of signr_convert() (diff)
downloadlinux-cabf503588961d202a33b3fd872767e9f6abbef7.tar.gz
linux-cabf503588961d202a33b3fd872767e9f6abbef7.tar.bz2
linux-cabf503588961d202a33b3fd872767e9f6abbef7.zip
x86: signal: cosmetic unification of macros for setup_rt_frame()
Impact: cleanup Add #ifdef directive 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_64.c')
-rw-r--r--arch/x86/kernel/signal_64.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/x86/kernel/signal_64.c b/arch/x86/kernel/signal_64.c
index a4b46e6392b1..49df79e05111 100644
--- a/arch/x86/kernel/signal_64.c
+++ b/arch/x86/kernel/signal_64.c
@@ -304,11 +304,21 @@ static int signr_convert(int sig)
return sig;
}
+#ifdef CONFIG_X86_32
+
+#define is_ia32 1
+#define ia32_setup_frame __setup_frame
+#define ia32_setup_rt_frame __setup_rt_frame
+
+#else /* !CONFIG_X86_32 */
+
#ifdef CONFIG_IA32_EMULATION
#define is_ia32 test_thread_flag(TIF_IA32)
-#else
+#else /* !CONFIG_IA32_EMULATION */
#define is_ia32 0
-#endif
+#endif /* CONFIG_IA32_EMULATION */
+
+#endif /* CONFIG_X86_32 */
static int
setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,