diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-01-12 04:05:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-12 12:08:53 -0500 |
commit | d562ef6a23feb72f32ebd23fb32fe7d2c35a85cd (patch) | |
tree | 3ee5db91cee3b52c6ba1a07a8f487bfe3df0d095 /arch/sparc/kernel/traps.c | |
parent | 308a792f7c563a7af6e325274c63812f98988d6f (diff) |
[PATCH] sparc: task_thread_info()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/sparc/kernel/traps.c')
-rw-r--r-- | arch/sparc/kernel/traps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/traps.c b/arch/sparc/kernel/traps.c index 3f451ae66482..41d45c298fb2 100644 --- a/arch/sparc/kernel/traps.c +++ b/arch/sparc/kernel/traps.c | |||
@@ -291,7 +291,7 @@ void do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, | |||
291 | #ifndef CONFIG_SMP | 291 | #ifndef CONFIG_SMP |
292 | if(!fpt) { | 292 | if(!fpt) { |
293 | #else | 293 | #else |
294 | if(!(fpt->thread_info->flags & _TIF_USEDFPU)) { | 294 | if(!(task_thread_info(fpt)->flags & _TIF_USEDFPU)) { |
295 | #endif | 295 | #endif |
296 | fpsave(&fake_regs[0], &fake_fsr, &fake_queue[0], &fake_depth); | 296 | fpsave(&fake_regs[0], &fake_fsr, &fake_queue[0], &fake_depth); |
297 | regs->psr &= ~PSR_EF; | 297 | regs->psr &= ~PSR_EF; |
@@ -334,7 +334,7 @@ void do_fpe_trap(struct pt_regs *regs, unsigned long pc, unsigned long npc, | |||
334 | /* nope, better SIGFPE the offending process... */ | 334 | /* nope, better SIGFPE the offending process... */ |
335 | 335 | ||
336 | #ifdef CONFIG_SMP | 336 | #ifdef CONFIG_SMP |
337 | fpt->thread_info->flags &= ~_TIF_USEDFPU; | 337 | task_thread_info(fpt)->flags &= ~_TIF_USEDFPU; |
338 | #endif | 338 | #endif |
339 | if(psr & PSR_PS) { | 339 | if(psr & PSR_PS) { |
340 | /* The first fsr store/load we tried trapped, | 340 | /* The first fsr store/load we tried trapped, |