projects/linux·commit ff71db2f

avr32, exec: remove redundant set_fs(USER_DS)

ff71db2f · Mathias Krause <[email protected]> · 2011-06-10 15:09:05 +02:00

The address limit is already set in flush_old_exec() so this
set_fs(USER_DS) is redundant.

Signed-off-by: Mathias Krause <[email protected]>
Signed-off-by: Hans-Christian Egtvedt <[email protected]>
Commit
ff71db2f0784cfff38fa7b55908867a24ccc3216
Parents
c1627554

Changes

1 files changed · +0 −1

FileStatusAddDelContent
arch/avr32/include/asm/processor.hmodified+0−1View file

arch/avr32/include/asm/processor.h

View file
diff --git a/arch/avr32/include/asm/processor.h b/arch/avr32/include/asm/processor.h
index 49a88f5..108502b 100644
--- a/arch/avr32/include/asm/processor.h
+++ b/arch/avr32/include/asm/processor.h
@@ -131,7 +131,6 @@ struct thread_struct {
*/
#define start_thread(regs, new_pc, new_sp) \
do { \
- set_fs(USER_DS); \
memset(regs, 0, sizeof(*regs)); \
regs->sr = MODE_USER; \
regs->pc = new_pc & ~1; \