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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user