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

m68k: 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>

+2 -14
-2
arch/m68k/include/asm/thread_info.h
··· 26 26 struct thread_info { 27 27 struct task_struct *task; /* main task structure */ 28 28 unsigned long flags; 29 - struct exec_domain *exec_domain; /* execution domain */ 30 29 mm_segment_t addr_limit; /* thread address space */ 31 30 int preempt_count; /* 0 => preemptable, <0 => BUG */ 32 31 __u32 cpu; /* should always be 0 on m68k */ ··· 36 37 #define INIT_THREAD_INFO(tsk) \ 37 38 { \ 38 39 .task = &tsk, \ 39 - .exec_domain = &default_exec_domain, \ 40 40 .addr_limit = KERNEL_DS, \ 41 41 .preempt_count = INIT_PREEMPT_COUNT, \ 42 42 }
+2 -12
arch/m68k/kernel/signal.c
··· 863 863 if (fsize) 864 864 err |= copy_to_user (frame + 1, regs + 1, fsize); 865 865 866 - err |= __put_user((current_thread_info()->exec_domain 867 - && current_thread_info()->exec_domain->signal_invmap 868 - && sig < 32 869 - ? current_thread_info()->exec_domain->signal_invmap[sig] 870 - : sig), 871 - &frame->sig); 866 + err |= __put_user(sig, &frame->sig); 872 867 873 868 err |= __put_user(regs->vector, &frame->code); 874 869 err |= __put_user(&frame->sc, &frame->psc); ··· 943 948 if (fsize) 944 949 err |= copy_to_user (&frame->uc.uc_extra, regs + 1, fsize); 945 950 946 - err |= __put_user((current_thread_info()->exec_domain 947 - && current_thread_info()->exec_domain->signal_invmap 948 - && sig < 32 949 - ? current_thread_info()->exec_domain->signal_invmap[sig] 950 - : sig), 951 - &frame->sig); 951 + err |= __put_user(sig, &frame->sig); 952 952 err |= __put_user(&frame->info, &frame->pinfo); 953 953 err |= __put_user(&frame->uc, &frame->puc); 954 954 err |= copy_siginfo_to_user(&frame->info, &ksig->info);