diff options
author | Mathias Krause <minipli@googlemail.com> | 2011-07-25 20:12:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 23:57:12 -0400 |
commit | 5ec80e50e11bcc3f39e47b9dc73110dbc58e4780 (patch) | |
tree | 5a33f0d6c466c1cefbb7e22f7ad9b8fdb74e79d4 /arch | |
parent | ce1bb7afc5648056cf66896c4aebc0062bb12f79 (diff) |
cris, 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: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/cris/include/arch-v10/arch/processor.h | 1 | ||||
-rw-r--r-- | arch/cris/include/arch-v32/arch/processor.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/arch/cris/include/arch-v10/arch/processor.h b/arch/cris/include/arch-v10/arch/processor.h index cc692c7a0660..93feb2a487d8 100644 --- a/arch/cris/include/arch-v10/arch/processor.h +++ b/arch/cris/include/arch-v10/arch/processor.h | |||
@@ -53,7 +53,6 @@ struct thread_struct { | |||
53 | */ | 53 | */ |
54 | 54 | ||
55 | #define start_thread(regs, ip, usp) do { \ | 55 | #define start_thread(regs, ip, usp) do { \ |
56 | set_fs(USER_DS); \ | ||
57 | regs->irp = ip; \ | 56 | regs->irp = ip; \ |
58 | regs->dccr |= 1 << U_DCCR_BITNR; \ | 57 | regs->dccr |= 1 << U_DCCR_BITNR; \ |
59 | wrusp(usp); \ | 58 | wrusp(usp); \ |
diff --git a/arch/cris/include/arch-v32/arch/processor.h b/arch/cris/include/arch-v32/arch/processor.h index f80b47790ca6..9603c907fbc4 100644 --- a/arch/cris/include/arch-v32/arch/processor.h +++ b/arch/cris/include/arch-v32/arch/processor.h | |||
@@ -47,7 +47,6 @@ struct thread_struct { | |||
47 | */ | 47 | */ |
48 | #define start_thread(regs, ip, usp) \ | 48 | #define start_thread(regs, ip, usp) \ |
49 | do { \ | 49 | do { \ |
50 | set_fs(USER_DS); \ | ||
51 | regs->erp = ip; \ | 50 | regs->erp = ip; \ |
52 | regs->ccs |= 1 << (U_CCS_BITNR + CCS_SHIFT); \ | 51 | regs->ccs |= 1 << (U_CCS_BITNR + CCS_SHIFT); \ |
53 | wrusp(usp); \ | 52 | wrusp(usp); \ |