Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 201fbceb authored by Mathias Krause's avatar Mathias Krause Committed by Paul Mundt
Browse files

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: default avatarMathias Krause <minipli@googlemail.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 9aa7719e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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 ! */		\
+0 −2
Original line number Diff line number Diff line
@@ -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;