]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
unicore32: Remove signal translation and exec_domain
authorRichard Weinberger <richard@nod.at>
Sun, 13 Jul 2014 15:42:53 +0000 (17:42 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 12 Apr 2015 19:03:28 +0000 (21:03 +0200)
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>
arch/unicore32/include/asm/thread_info.h
arch/unicore32/kernel/asm-offsets.c
arch/unicore32/kernel/signal.c

index 63e2839dfeb8f829135067afd2cdf81a13292e58..e79ad6d5b5b2983c9a6d5464a6788a5fea20da2d 100644 (file)
@@ -24,7 +24,6 @@
 #ifndef __ASSEMBLY__
 
 struct task_struct;
-struct exec_domain;
 
 #include <asm/types.h>
 
@@ -71,7 +70,6 @@ struct thread_info {
                                                /* <0 => bug */
        mm_segment_t            addr_limit;     /* address limit */
        struct task_struct      *task;          /* main task structure */
-       struct exec_domain      *exec_domain;   /* execution domain */
        __u32                   cpu;            /* cpu */
        struct cpu_context_save cpu_context;    /* cpu context */
        __u32                   syscall;        /* syscall number */
@@ -84,7 +82,6 @@ struct thread_info {
 #define INIT_THREAD_INFO(tsk)                                          \
 {                                                                      \
        .task           = &tsk,                                         \
-       .exec_domain    = &default_exec_domain,                         \
        .flags          = 0,                                            \
        .preempt_count  = INIT_PREEMPT_COUNT,                           \
        .addr_limit     = KERNEL_DS,                                    \
index ffcbe7536ca7ae02212944d6b0f480a3edcbbcb0..80d50c4651e337c01926f449197a9a388b00e4c8 100644 (file)
@@ -42,7 +42,6 @@ int main(void)
        DEFINE(TI_PREEMPT,      offsetof(struct thread_info, preempt_count));
        DEFINE(TI_ADDR_LIMIT,   offsetof(struct thread_info, addr_limit));
        DEFINE(TI_TASK,         offsetof(struct thread_info, task));
-       DEFINE(TI_EXEC_DOMAIN,  offsetof(struct thread_info, exec_domain));
        DEFINE(TI_CPU,          offsetof(struct thread_info, cpu));
        DEFINE(TI_CPU_SAVE,     offsetof(struct thread_info, cpu_context));
        DEFINE(TI_USED_CP,      offsetof(struct thread_info, used_cp));
index d329f85766cc5cd0b794e37a7e3ff1fd90157f9f..4ae51cf15adea6ef7ddc6741b431793b545903d3 100644 (file)
@@ -329,13 +329,6 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs,
                }
        }
 
-       /*
-        * translate the signal
-        */
-       if (usig < 32 && thread->exec_domain
-                       && thread->exec_domain->signal_invmap)
-               usig = thread->exec_domain->signal_invmap[usig];
-
        /*
         * Set up the stack frame
         */