Skip to content

Commit 3050a35

Browse files
x86: Remove signal translation and exec_domain
As execution domain support is gone we can remove signal translation from the signal code and remove exec_domain from thread_info. Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 19b6d0b commit 3050a35

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

‎arch/x86/include/asm/thread_info.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
*/
2020
#ifndef __ASSEMBLY__
2121
struct task_struct;
22-
struct exec_domain;
2322
#include <asm/processor.h>
2423
#include <linux/atomic.h>
2524

2625
struct thread_info {
2726
struct task_struct *task; /* main task structure */
28-
struct exec_domain *exec_domain; /* execution domain */
2927
__u32 flags; /* low level flags */
3028
__u32 status; /* thread synchronous flags */
3129
__u32 cpu; /* current CPU */
@@ -39,7 +37,6 @@ struct thread_info {
3937
#define INIT_THREAD_INFO(tsk) \
4038
{ \
4139
.task = &tsk, \
42-
.exec_domain = &default_exec_domain, \
4340
.flags = 0, \
4441
.cpu = 0, \
4542
.saved_preempt_count = INIT_PREEMPT_COUNT, \

‎arch/x86/kernel/signal.c‎

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -592,24 +592,10 @@ asmlinkage long sys_rt_sigreturn(void)
592592
return 0;
593593
}
594594

595-
/*
596-
* OK, we're invoking a handler:
597-
*/
598-
static int signr_convert(int sig)
599-
{
600-
#ifdef CONFIG_X86_32
601-
struct thread_info *info = current_thread_info();
602-
603-
if (info->exec_domain && info->exec_domain->signal_invmap && sig < 32)
604-
return info->exec_domain->signal_invmap[sig];
605-
#endif /* CONFIG_X86_32 */
606-
return sig;
607-
}
608-
609595
static int
610596
setup_rt_frame(struct ksignal *ksig, struct pt_regs *regs)
611597
{
612-
int usig = signr_convert(ksig->sig);
598+
int usig = ksig->sig;
613599
sigset_t *set = sigmask_to_save();
614600
compat_sigset_t *cset = (compat_sigset_t *) set;
615601

0 commit comments

Comments
 (0)