Skip to content

Commit 201fbce

Browse files
miniplipmundt
authored andcommitted
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>
1 parent 9aa7719 commit 201fbce

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

‎arch/sh/include/asm/processor_64.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ struct thread_struct {
150150
#define SR_USER (SR_MMU | SR_FD)
151151

152152
#define start_thread(_regs, new_pc, new_sp) \
153-
set_fs(USER_DS); \
154153
_regs->sr = SR_USER; /* User mode. */ \
155154
_regs->pc = new_pc - 4; /* Compensate syscall exit */ \
156155
_regs->pc |= 1; /* Set SHmedia ! */ \

‎arch/sh/kernel/process_32.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ EXPORT_SYMBOL(kernel_thread);
102102
void start_thread(struct pt_regs *regs, unsigned long new_pc,
103103
unsigned long new_sp)
104104
{
105-
set_fs(USER_DS);
106-
107105
regs->pr = 0;
108106
regs->sr = SR_FD;
109107
regs->pc = new_pc;

0 commit comments

Comments
 (0)