From b2212ea41dacda8cce0e7681a3a6ccc76c63802e Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Thu, 19 Apr 2012 17:52:20 +0900 Subject: 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 --- arch/sh/mm/tlbflush_64.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'arch/sh/mm/tlbflush_64.c') 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: panic("INIT had user mode bad_area\n"); } tsk->thread.address = address; - tsk->thread.error_code = writeaccess; info.si_signo = SIGSEGV; info.si_errno = 0; info.si_addr = (void *) address; @@ -263,8 +262,6 @@ do_sigbus: * or user mode. */ tsk->thread.address = address; - tsk->thread.error_code = writeaccess; - tsk->thread.trap_no = 14; force_sig(SIGBUS, tsk); /* Kernel mode? Handle exceptions or die */ -- cgit v1.2.1