x86/ptrace: Remove checks for TIF_IA32 when changing CS and SS
[deliverable/linux.git] / arch / x86 / kernel / ptrace.c
index e510618b2e91a7969bb8cf6c74a35f59e4bf1bea..1e125817cf9fc4f81ae6f19f3fca4f1ce946230b 100644 (file)
@@ -364,18 +364,12 @@ static int set_segment_reg(struct task_struct *task,
        case offsetof(struct user_regs_struct,cs):
                if (unlikely(value == 0))
                        return -EIO;
-#ifdef CONFIG_IA32_EMULATION
-               if (test_tsk_thread_flag(task, TIF_IA32))
-                       task_pt_regs(task)->cs = value;
-#endif
+               task_pt_regs(task)->cs = value;
                break;
        case offsetof(struct user_regs_struct,ss):
                if (unlikely(value == 0))
                        return -EIO;
-#ifdef CONFIG_IA32_EMULATION
-               if (test_tsk_thread_flag(task, TIF_IA32))
-                       task_pt_regs(task)->ss = value;
-#endif
+               task_pt_regs(task)->ss = value;
                break;
        }
 
This page took 0.035117 seconds and 5 git commands to generate.