Skip to content

Commit ed96dfb

Browse files
minipligxt
authored andcommitted
unicore32, exec: remove redundant set_fs(USER_DS)
The address limit is already set in flush_old_exec() so this set_fs(USER_DS) is redundant. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
1 parent 8889023 commit ed96dfb

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎arch/unicore32/include/asm/processor.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ struct thread_struct {
5353
#define start_thread(regs, pc, sp) \
5454
({ \
5555
unsigned long *stack = (unsigned long *)sp; \
56-
set_fs(USER_DS); \
5756
memset(regs->uregs, 0, sizeof(regs->uregs)); \
5857
regs->UCreg_asr = USER_MODE; \
5958
regs->UCreg_pc = pc & ~1; /* pc */ \

0 commit comments

Comments
 (0)