Skip to content

Commit e6de3ca

Browse files
arc: 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 3e66701 commit e6de3ca

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ struct thread_info {
4343
int preempt_count; /* 0 => preemptable, <0 => BUG */
4444
struct task_struct *task; /* main task structure */
4545
mm_segment_t addr_limit; /* thread address space */
46-
struct exec_domain *exec_domain;/* execution domain */
4746
__u32 cpu; /* current CPU */
4847
unsigned long thr_ptr; /* TLS ptr */
4948
};
@@ -56,7 +55,6 @@ struct thread_info {
5655
#define INIT_THREAD_INFO(tsk) \
5756
{ \
5857
.task = &tsk, \
59-
.exec_domain = &default_exec_domain, \
6058
.flags = 0, \
6159
.cpu = 0, \
6260
.preempt_count = INIT_PREEMPT_COUNT, \

‎arch/arc/kernel/signal.c‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,6 @@ static inline void __user *get_sigframe(struct ksignal *ksig,
171171
return frame;
172172
}
173173

174-
/*
175-
* translate the signal
176-
*/
177-
static inline int map_sig(int sig)
178-
{
179-
struct thread_info *thread = current_thread_info();
180-
if (thread->exec_domain && thread->exec_domain->signal_invmap
181-
&& sig < 32)
182-
sig = thread->exec_domain->signal_invmap[sig];
183-
return sig;
184-
}
185-
186174
static int
187175
setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
188176
{
@@ -231,7 +219,7 @@ setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs)
231219
return err;
232220

233221
/* #1 arg to the user Signal handler */
234-
regs->r0 = map_sig(ksig->sig);
222+
regs->r0 = ksig->sig;
235223

236224
/* setup PC of user space signal handler */
237225
regs->ret = (unsigned long)ksig->ka.sa.sa_handler;

0 commit comments

Comments
 (0)