Commit 201fbceb258650157fcc4fd746abcdd3a571eada

Authored by Mathias Krause
Committed by Paul Mundt
1 parent 9aa7719e0c

sh, exec: remove redundant set_fs(USER_DS)

The address limit is already set in flush_old_exec() so those calls to
set_fs(USER_DS) are redundant.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Showing 2 changed files with 0 additions and 3 deletions Side-by-side Diff

arch/sh/include/asm/processor_64.h
... ... @@ -150,7 +150,6 @@
150 150 #define SR_USER (SR_MMU | SR_FD)
151 151  
152 152 #define start_thread(_regs, new_pc, new_sp) \
153   - set_fs(USER_DS); \
154 153 _regs->sr = SR_USER; /* User mode. */ \
155 154 _regs->pc = new_pc - 4; /* Compensate syscall exit */ \
156 155 _regs->pc |= 1; /* Set SHmedia ! */ \
arch/sh/kernel/process_32.c
... ... @@ -102,8 +102,6 @@
102 102 void start_thread(struct pt_regs *regs, unsigned long new_pc,
103 103 unsigned long new_sp)
104 104 {
105   - set_fs(USER_DS);
106   -
107 105 regs->pr = 0;
108 106 regs->sr = SR_FD;
109 107 regs->pc = new_pc;