diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-10-29 21:46:07 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-30 06:43:48 -0400 |
commit | cabf503588961d202a33b3fd872767e9f6abbef7 (patch) | |
tree | 66c97336d9929113a269599267628237e9b3f5f9 /arch/x86/kernel/signal_32.c | |
parent | 96bf84b71255b0ee4fcee91e9acd1b5e73030eaf (diff) |
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_32.c')
-rw-r--r-- | arch/x86/kernel/signal_32.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c index abf0df700fd0..6f3b9a9cc123 100644 --- a/arch/x86/kernel/signal_32.c +++ b/arch/x86/kernel/signal_32.c | |||
@@ -512,10 +512,22 @@ static int signr_convert(int sig) | |||
512 | return sig; | 512 | return sig; |
513 | } | 513 | } |
514 | 514 | ||
515 | #ifdef CONFIG_X86_32 | ||
516 | |||
515 | #define is_ia32 1 | 517 | #define is_ia32 1 |
516 | #define ia32_setup_frame __setup_frame | 518 | #define ia32_setup_frame __setup_frame |
517 | #define ia32_setup_rt_frame __setup_rt_frame | 519 | #define ia32_setup_rt_frame __setup_rt_frame |
518 | 520 | ||
521 | #else /* !CONFIG_X86_32 */ | ||
522 | |||
523 | #ifdef CONFIG_IA32_EMULATION | ||
524 | #define is_ia32 test_thread_flag(TIF_IA32) | ||
525 | #else /* !CONFIG_IA32_EMULATION */ | ||
526 | #define is_ia32 0 | ||
527 | #endif /* CONFIG_IA32_EMULATION */ | ||
528 | |||
529 | #endif /* CONFIG_X86_32 */ | ||
530 | |||
519 | static int | 531 | static int |
520 | setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, | 532 | setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, |
521 | sigset_t *set, struct pt_regs *regs) | 533 | sigset_t *set, struct pt_regs *regs) |