aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2012-04-19 04:52:20 -0400
committerPaul Mundt <lethal@linux-sh.org>2012-04-19 04:52:20 -0400
commitb2212ea41dacda8cce0e7681a3a6ccc76c63802e (patch)
tree85f0dc57ff93f9b0dc221975806c3393eb229cbf /arch/sh/mm
parentfb56a91922463abec52a68e26b562c4503810d40 (diff)
sh64: Kill off unused trap_no/error_code from thread_struct.
While the trap number and error code are passed around for debugging purposes, this occurs wholly independently of the thread struct values. These values were never part of the sigcontext ABI and are thus never passed anywhere, so we can just kill them off across the board. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm')
-rw-r--r--arch/sh/mm/tlbflush_64.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/sh/mm/tlbflush_64.c b/arch/sh/mm/tlbflush_64.c
index 605dc65dc66d..be01f92f8c89 100644
--- a/arch/sh/mm/tlbflush_64.c
+++ b/arch/sh/mm/tlbflush_64.c
@@ -213,7 +213,6 @@ bad_area:
213 panic("INIT had user mode bad_area\n"); 213 panic("INIT had user mode bad_area\n");
214 } 214 }
215 tsk->thread.address = address; 215 tsk->thread.address = address;
216 tsk->thread.error_code = writeaccess;
217 info.si_signo = SIGSEGV; 216 info.si_signo = SIGSEGV;
218 info.si_errno = 0; 217 info.si_errno = 0;
219 info.si_addr = (void *) address; 218 info.si_addr = (void *) address;
@@ -263,8 +262,6 @@ do_sigbus:
263 * or user mode. 262 * or user mode.
264 */ 263 */
265 tsk->thread.address = address; 264 tsk->thread.address = address;
266 tsk->thread.error_code = writeaccess;
267 tsk->thread.trap_no = 14;
268 force_sig(SIGBUS, tsk); 265 force_sig(SIGBUS, tsk);
269 266
270 /* Kernel mode? Handle exceptions or die */ 267 /* Kernel mode? Handle exceptions or die */