aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kernel/signal_32.c12
-rw-r--r--arch/x86/kernel/signal_64.c14
2 files changed, 24 insertions, 2 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
519static int 531static int
520setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, 532setup_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)
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)
304 return sig; 304 return sig;
305} 305}
306 306
307#ifdef CONFIG_X86_32
308
309#define is_ia32 1
310#define ia32_setup_frame __setup_frame
311#define ia32_setup_rt_frame __setup_rt_frame
312
313#else /* !CONFIG_X86_32 */
314
307#ifdef CONFIG_IA32_EMULATION 315#ifdef CONFIG_IA32_EMULATION
308#define is_ia32 test_thread_flag(TIF_IA32) 316#define is_ia32 test_thread_flag(TIF_IA32)
309#else 317#else /* !CONFIG_IA32_EMULATION */
310#define is_ia32 0 318#define is_ia32 0
311#endif 319#endif /* CONFIG_IA32_EMULATION */
320
321#endif /* CONFIG_X86_32 */
312 322
313static int 323static int
314setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, 324setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,