diff options
author | Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com> | 2008-10-30 02:44:08 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-30 11:43:47 +0100 |
commit | 96bf84b71255b0ee4fcee91e9acd1b5e73030eaf (patch) | |
tree | 5432c3d9fded92814891d2f99d990e2a224e74de /arch/x86/kernel/signal_64.c | |
parent | x86: signal_64.c: get_stack() doesn't need entire regs (diff) | |
download | linux-96bf84b71255b0ee4fcee91e9acd1b5e73030eaf.tar.xz linux-96bf84b71255b0ee4fcee91e9acd1b5e73030eaf.zip |
x86: signal: cosmetic unification of signr_convert()
Impact: cleanup
Make signr_convert() same.
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_64.c')
-rw-r--r-- | arch/x86/kernel/signal_64.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/signal_64.c b/arch/x86/kernel/signal_64.c index 3d0deb336745..a4b46e6392b1 100644 --- a/arch/x86/kernel/signal_64.c +++ b/arch/x86/kernel/signal_64.c @@ -295,6 +295,12 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, */ static int signr_convert(int sig) { +#ifdef CONFIG_X86_32 + struct thread_info *info = current_thread_info(); + + if (info->exec_domain && info->exec_domain->signal_invmap && sig < 32) + return info->exec_domain->signal_invmap[sig]; +#endif /* CONFIG_X86_32 */ return sig; } |