aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/signal_32.c6
-rw-r--r--arch/x86/kernel/signal_64.c5
2 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/kernel/signal_32.c b/arch/x86/kernel/signal_32.c
index 6f3b9a9cc123..a0efc1b3c4c9 100644
--- a/arch/x86/kernel/signal_32.c
+++ b/arch/x86/kernel/signal_32.c
@@ -628,7 +628,13 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
628 return 0; 628 return 0;
629} 629}
630 630
631#ifdef CONFIG_X86_32
631#define NR_restart_syscall __NR_restart_syscall 632#define NR_restart_syscall __NR_restart_syscall
633#else /* !CONFIG_X86_32 */
634#define NR_restart_syscall \
635 test_thread_flag(TIF_IA32) ? __NR_ia32_restart_syscall : __NR_restart_syscall
636#endif /* CONFIG_X86_32 */
637
632/* 638/*
633 * Note that 'init' is a special process: it doesn't get signals it doesn't 639 * Note that 'init' is a special process: it doesn't get signals it doesn't
634 * want to handle. Thus you cannot kill init even with a SIGKILL even by 640 * want to handle. Thus you cannot kill init even with a SIGKILL even by
diff --git a/arch/x86/kernel/signal_64.c b/arch/x86/kernel/signal_64.c
index 49df79e05111..83990db82f74 100644
--- a/arch/x86/kernel/signal_64.c
+++ b/arch/x86/kernel/signal_64.c
@@ -420,8 +420,13 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
420 return 0; 420 return 0;
421} 421}
422 422
423#ifdef CONFIG_X86_32
424#define NR_restart_syscall __NR_restart_syscall
425#else /* !CONFIG_X86_32 */
423#define NR_restart_syscall \ 426#define NR_restart_syscall \
424 test_thread_flag(TIF_IA32) ? __NR_ia32_restart_syscall : __NR_restart_syscall 427 test_thread_flag(TIF_IA32) ? __NR_ia32_restart_syscall : __NR_restart_syscall
428#endif /* CONFIG_X86_32 */
429
425/* 430/*
426 * Note that 'init' is a special process: it doesn't get signals it doesn't 431 * Note that 'init' is a special process: it doesn't get signals it doesn't
427 * want to handle. Thus you cannot kill init even with a SIGKILL even by 432 * want to handle. Thus you cannot kill init even with a SIGKILL even by