MFi386: thread specific fpu state optimizations
This commit is contained in:
parent
bc68df01ed
commit
2476026730
@ -205,7 +205,8 @@ void
|
||||
cpu_thread_exit(struct thread *td)
|
||||
{
|
||||
|
||||
npxexit(td);
|
||||
if (td == PCPU_GET(fpcurthread))
|
||||
npxdrop();
|
||||
}
|
||||
|
||||
void
|
||||
@ -265,6 +266,7 @@ cpu_set_upcall(struct thread *td, struct thread *td0)
|
||||
* more analysis) (need a good safe default).
|
||||
*/
|
||||
bcopy(td0->td_pcb, pcb2, sizeof(*pcb2));
|
||||
pcb2->pcb_flags &= ~(PCB_NPXTRAP|PCB_NPXINITDONE);
|
||||
|
||||
/*
|
||||
* Create a new fresh stack for the new thread.
|
||||
|
Loading…
Reference in New Issue
Block a user