Commit 201fbceb258650157fcc4fd746abcdd3a571eada
Committed by
Paul Mundt
1 parent
9aa7719e0c
Exists in
master
and in
20 other branches
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>
Showing 2 changed files with 0 additions and 3 deletions Side-by-side Diff
arch/sh/include/asm/processor_64.h
... | ... | @@ -150,7 +150,6 @@ |
150 | 150 | #define SR_USER (SR_MMU | SR_FD) |
151 | 151 | |
152 | 152 | #define start_thread(_regs, new_pc, new_sp) \ |
153 | - set_fs(USER_DS); \ | |
154 | 153 | _regs->sr = SR_USER; /* User mode. */ \ |
155 | 154 | _regs->pc = new_pc - 4; /* Compensate syscall exit */ \ |
156 | 155 | _regs->pc |= 1; /* Set SHmedia ! */ \ |
arch/sh/kernel/process_32.c