aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/signal_32.c
diff options
context:
space:
mode:
authorHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>2008-09-05 19:27:39 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-06 08:54:02 -0400
commit8fcd8e20f388d787f6abf701b11037b122029d5b (patch)
tree72a4b396864b72322cd047e73ff473832f09229b /arch/x86/kernel/signal_32.c
parent72fa50f4ef9014f4212945b766af84ea94308903 (diff)
x86: signal: make NR_restart_syscall
make NR_restart_syscall macro for cosmetic unification of handle_signal(). 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index 76d05d703845..bd9b65031a9a 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -572,6 +572,7 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
572 return 0; 572 return 0;
573} 573}
574 574
575#define NR_restart_syscall __NR_restart_syscall
575/* 576/*
576 * Note that 'init' is a special process: it doesn't get signals it doesn't 577 * Note that 'init' is a special process: it doesn't get signals it doesn't
577 * want to handle. Thus you cannot kill init even with a SIGKILL even by 578 * want to handle. Thus you cannot kill init even with a SIGKILL even by
@@ -635,7 +636,7 @@ static void do_signal(struct pt_regs *regs)
635 break; 636 break;
636 637
637 case -ERESTART_RESTARTBLOCK: 638 case -ERESTART_RESTARTBLOCK:
638 regs->ax = __NR_restart_syscall; 639 regs->ax = NR_restart_syscall;
639 regs->ip -= 2; 640 regs->ip -= 2;
640 break; 641 break;
641 } 642 }