diff options
author | Stuart Menefy <stuart.menefy@st.com> | 2006-11-20 23:34:04 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-12-05 20:45:38 -0500 |
commit | b5a1bcbee434b843c8850a968d9a6c7541f1be9d (patch) | |
tree | 2745f5efa2b4d6dfe18f4f186738612f0e77f79c /arch/sh/kernel/cpu | |
parent | f0bc814cfbc212683c882e58b3d1afec6b3e3aa3 (diff) |
sh: Set up correct siginfo structures for page faults.
Remove the previous saving of fault codes into the thread_struct
as they are never used, and appeared to be inherited from x86.
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu')
-rw-r--r-- | arch/sh/kernel/cpu/sh4/fpu.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/sh4/fpu.c b/arch/sh/kernel/cpu/sh4/fpu.c index 378b488237c9..7624677f6628 100644 --- a/arch/sh/kernel/cpu/sh4/fpu.c +++ b/arch/sh/kernel/cpu/sh4/fpu.c | |||
@@ -282,11 +282,8 @@ ieee_fpe_handler (struct pt_regs *regs) | |||
282 | grab_fpu(regs); | 282 | grab_fpu(regs); |
283 | restore_fpu(tsk); | 283 | restore_fpu(tsk); |
284 | set_tsk_thread_flag(tsk, TIF_USEDFPU); | 284 | set_tsk_thread_flag(tsk, TIF_USEDFPU); |
285 | } else { | 285 | } else |
286 | tsk->thread.trap_no = 11; | ||
287 | tsk->thread.error_code = 0; | ||
288 | force_sig(SIGFPE, tsk); | 286 | force_sig(SIGFPE, tsk); |
289 | } | ||
290 | 287 | ||
291 | regs->pc = nextpc; | 288 | regs->pc = nextpc; |
292 | return 1; | 289 | return 1; |
@@ -307,8 +304,6 @@ do_fpu_error(unsigned long r4, unsigned long r5, unsigned long r6, | |||
307 | 304 | ||
308 | regs->pc += 2; | 305 | regs->pc += 2; |
309 | save_fpu(tsk, regs); | 306 | save_fpu(tsk, regs); |
310 | tsk->thread.trap_no = 11; | ||
311 | tsk->thread.error_code = 0; | ||
312 | force_sig(SIGFPE, tsk); | 307 | force_sig(SIGFPE, tsk); |
313 | } | 308 | } |
314 | 309 | ||