aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_32.c
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2008-11-24 21:24:11 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-25 23:11:54 -0500
commite5fa2d063cf2ca38eae5fb3469315db669d5c041 (patch)
treece3deacf11e47bed1066dfa8039a2aa38e117126 /arch/x86/kernel/signal_32.c
parentbfeb91a9435889ef4fe7bfbb4b673f625e69e790 (diff)
x86: signal: unify signal_{32|64}.c, prepare
Impact: cleanup Add #ifdef directive for 32-bit only code. 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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index e9f71298e746..b1f4d34e0a38 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -1,8 +1,10 @@
1/* 1/*
2 * Copyright (C) 1991, 1992 Linus Torvalds 2 * Copyright (C) 1991, 1992 Linus Torvalds
3 * Copyright (C) 2000, 2001, 2002 Andi Kleen SuSE Labs
3 * 4 *
4 * 1997-11-28 Modified for POSIX.1b signals by Richard Henderson 5 * 1997-11-28 Modified for POSIX.1b signals by Richard Henderson
5 * 2000-06-20 Pentium III FXSR, SSE support by Gareth Hughes 6 * 2000-06-20 Pentium III FXSR, SSE support by Gareth Hughes
7 * 2000-2002 x86-64 support by Andi Kleen
6 */ 8 */
7 9
8#include <linux/sched.h> 10#include <linux/sched.h>
@@ -481,6 +483,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
481} 483}
482#endif /* CONFIG_X86_32 */ 484#endif /* CONFIG_X86_32 */
483 485
486#ifdef CONFIG_X86_32
484/* 487/*
485 * Atomically swap in the new signal mask, and wait for a signal. 488 * Atomically swap in the new signal mask, and wait for a signal.
486 */ 489 */
@@ -535,6 +538,7 @@ sys_sigaction(int sig, const struct old_sigaction __user *act,
535 538
536 return ret; 539 return ret;
537} 540}
541#endif /* CONFIG_X86_32 */
538 542
539#ifdef CONFIG_X86_32 543#ifdef CONFIG_X86_32
540asmlinkage int sys_sigaltstack(unsigned long bx) 544asmlinkage int sys_sigaltstack(unsigned long bx)
@@ -561,6 +565,7 @@ sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss,
561/* 565/*
562 * Do a signal return; undo the signal stack. 566 * Do a signal return; undo the signal stack.
563 */ 567 */
568#ifdef CONFIG_X86_32
564asmlinkage unsigned long sys_sigreturn(unsigned long __unused) 569asmlinkage unsigned long sys_sigreturn(unsigned long __unused)
565{ 570{
566 struct sigframe __user *frame; 571 struct sigframe __user *frame;
@@ -603,6 +608,7 @@ badframe:
603 608
604 return 0; 609 return 0;
605} 610}
611#endif /* CONFIG_X86_32 */
606 612
607static long do_rt_sigreturn(struct pt_regs *regs) 613static long do_rt_sigreturn(struct pt_regs *regs)
608{ 614{