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>
This commit is contained in:
parent
96bf84b712
commit
cabf503588
2 changed files with 24 additions and 2 deletions
|
@ -512,10 +512,22 @@ static int signr_convert(int sig)
|
||||||
return sig;
|
return sig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_X86_32
|
||||||
|
|
||||||
#define is_ia32 1
|
#define is_ia32 1
|
||||||
#define ia32_setup_frame __setup_frame
|
#define ia32_setup_frame __setup_frame
|
||||||
#define ia32_setup_rt_frame __setup_rt_frame
|
#define ia32_setup_rt_frame __setup_rt_frame
|
||||||
|
|
||||||
|
#else /* !CONFIG_X86_32 */
|
||||||
|
|
||||||
|
#ifdef CONFIG_IA32_EMULATION
|
||||||
|
#define is_ia32 test_thread_flag(TIF_IA32)
|
||||||
|
#else /* !CONFIG_IA32_EMULATION */
|
||||||
|
#define is_ia32 0
|
||||||
|
#endif /* CONFIG_IA32_EMULATION */
|
||||||
|
|
||||||
|
#endif /* CONFIG_X86_32 */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
|
setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
|
||||||
sigset_t *set, struct pt_regs *regs)
|
sigset_t *set, struct pt_regs *regs)
|
||||||
|
|
|
@ -304,11 +304,21 @@ static int signr_convert(int sig)
|
||||||
return sig;
|
return sig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_X86_32
|
||||||
|
|
||||||
|
#define is_ia32 1
|
||||||
|
#define ia32_setup_frame __setup_frame
|
||||||
|
#define ia32_setup_rt_frame __setup_rt_frame
|
||||||
|
|
||||||
|
#else /* !CONFIG_X86_32 */
|
||||||
|
|
||||||
#ifdef CONFIG_IA32_EMULATION
|
#ifdef CONFIG_IA32_EMULATION
|
||||||
#define is_ia32 test_thread_flag(TIF_IA32)
|
#define is_ia32 test_thread_flag(TIF_IA32)
|
||||||
#else
|
#else /* !CONFIG_IA32_EMULATION */
|
||||||
#define is_ia32 0
|
#define is_ia32 0
|
||||||
#endif
|
#endif /* CONFIG_IA32_EMULATION */
|
||||||
|
|
||||||
|
#endif /* CONFIG_X86_32 */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
|
setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
|
||||||
|
|
Loading…
Add table
Reference in a new issue