Skip to content

Commit

Permalink
sh, exec: remove redundant set_fs(USER_DS)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mathias Krause authored and Paul Mundt committed Jun 14, 2011
1 parent 9aa7719 commit 201fbce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion arch/sh/include/asm/processor_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ struct thread_struct {
#define SR_USER (SR_MMU | SR_FD)

#define start_thread(_regs, new_pc, new_sp) \
set_fs(USER_DS); \
_regs->sr = SR_USER; /* User mode. */ \
_regs->pc = new_pc - 4; /* Compensate syscall exit */ \
_regs->pc |= 1; /* Set SHmedia ! */ \
Expand Down
2 changes: 0 additions & 2 deletions arch/sh/kernel/process_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ EXPORT_SYMBOL(kernel_thread);
void start_thread(struct pt_regs *regs, unsigned long new_pc,
unsigned long new_sp)
{
set_fs(USER_DS);

regs->pr = 0;
regs->sr = SR_FD;
regs->pc = new_pc;
Expand Down

0 comments on commit 201fbce

Please sign in to comment.