diff options
author | Mathias Krause <minipli@googlemail.com> | 2011-07-25 20:12:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 23:57:11 -0400 |
commit | 023f21b9ccab71ae963781044a96b922cb4437bf (patch) | |
tree | 237a85690a72793733570679dd8f4197f300805a /arch/h8300/include | |
parent | 99b12e3d882bc7ebdfe0de381dff3b16d21c38f7 (diff) |
h8300, 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>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/h8300/include')
-rw-r--r-- | arch/h8300/include/asm/processor.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/h8300/include/asm/processor.h b/arch/h8300/include/asm/processor.h index 69e8a34eb6d5..e834b6018897 100644 --- a/arch/h8300/include/asm/processor.h +++ b/arch/h8300/include/asm/processor.h | |||
@@ -81,7 +81,6 @@ struct thread_struct { | |||
81 | #if defined(__H8300H__) | 81 | #if defined(__H8300H__) |
82 | #define start_thread(_regs, _pc, _usp) \ | 82 | #define start_thread(_regs, _pc, _usp) \ |
83 | do { \ | 83 | do { \ |
84 | set_fs(USER_DS); /* reads from user space */ \ | ||
85 | (_regs)->pc = (_pc); \ | 84 | (_regs)->pc = (_pc); \ |
86 | (_regs)->ccr = 0x00; /* clear all flags */ \ | 85 | (_regs)->ccr = 0x00; /* clear all flags */ \ |
87 | (_regs)->er5 = current->mm->start_data; /* GOT base */ \ | 86 | (_regs)->er5 = current->mm->start_data; /* GOT base */ \ |
@@ -91,7 +90,6 @@ do { \ | |||
91 | #if defined(__H8300S__) | 90 | #if defined(__H8300S__) |
92 | #define start_thread(_regs, _pc, _usp) \ | 91 | #define start_thread(_regs, _pc, _usp) \ |
93 | do { \ | 92 | do { \ |
94 | set_fs(USER_DS); /* reads from user space */ \ | ||
95 | (_regs)->pc = (_pc); \ | 93 | (_regs)->pc = (_pc); \ |
96 | (_regs)->ccr = 0x00; /* clear kernel flag */ \ | 94 | (_regs)->ccr = 0x00; /* clear kernel flag */ \ |
97 | (_regs)->exr = 0x78; /* enable all interrupts */ \ | 95 | (_regs)->exr = 0x78; /* enable all interrupts */ \ |