Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 -15
-2
arch/arc/include/asm/thread_info.h
··· 43 43 int preempt_count; /* 0 => preemptable, <0 => BUG */ 44 44 struct task_struct *task; /* main task structure */ 45 45 mm_segment_t addr_limit; /* thread address space */ 46 - struct exec_domain *exec_domain;/* execution domain */ 47 46 __u32 cpu; /* current CPU */ 48 47 unsigned long thr_ptr; /* TLS ptr */ 49 48 }; ··· 55 56 #define INIT_THREAD_INFO(tsk) \ 56 57 { \ 57 58 .task = &tsk, \ 58 - .exec_domain = &default_exec_domain, \ 59 59 .flags = 0, \ 60 60 .cpu = 0, \ 61 61 .preempt_count = INIT_PREEMPT_COUNT, \
+1 -13
arch/arc/kernel/signal.c
··· 171 171 return frame; 172 172 } 173 173 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 - 186 174 static int 187 175 setup_rt_frame(struct ksignal *ksig, sigset_t *set, struct pt_regs *regs) 188 176 { ··· 219 231 return err; 220 232 221 233 /* #1 arg to the user Signal handler */ 222 - regs->r0 = map_sig(ksig->sig); 234 + regs->r0 = ksig->sig; 223 235 224 236 /* setup PC of user space signal handler */ 225 237 regs->ret = (unsigned long)ksig->ka.sa.sa_handler;