Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mathias Krause and committed by
Guan Xuetao
ed96dfbc 8889023a

-1
-1
arch/unicore32/include/asm/processor.h
··· 53 53 #define start_thread(regs, pc, sp) \ 54 54 ({ \ 55 55 unsigned long *stack = (unsigned long *)sp; \ 56 - set_fs(USER_DS); \ 57 56 memset(regs->uregs, 0, sizeof(regs->uregs)); \ 58 57 regs->UCreg_asr = USER_MODE; \ 59 58 regs->UCreg_pc = pc & ~1; /* pc */ \