Implemented lazy FPU state save/restore. In the end mostly ported from NewOS. SMP safe.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17251 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2006-04-27 22:02:48 +00:00
parent fdfbd66456
commit 7eee76e65a
9 changed files with 56 additions and 35 deletions
+6
View File
@@ -872,6 +872,12 @@ thread_exit2(void *_args)
user_debug_thread_deleted(args.original_team_id, args.thread->id);
}
// remove us as the fpu state owner if we are one
if (args.thread->fpu_cpu) {
args.thread->fpu_cpu->info.fpu_state_thread = NULL;
args.thread->fpu_cpu = NULL;
}
// return the death stack and reschedule one last time
put_death_stack_and_reschedule(args.death_stack);