Save VFP state on fork().
Update the copy of VFP state in PCB before it is cloned for new process. MFC after: 2 weeks
This commit is contained in:
parent
1f0e4d50b2
commit
45f6b40f83
@ -110,6 +110,14 @@ cpu_fork(register struct thread *td1, register struct proc *p2,
|
|||||||
#ifndef CPU_XSCALE_CORE3
|
#ifndef CPU_XSCALE_CORE3
|
||||||
pmap_use_minicache(td2->td_kstack, td2->td_kstack_pages * PAGE_SIZE);
|
pmap_use_minicache(td2->td_kstack, td2->td_kstack_pages * PAGE_SIZE);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
#ifdef VFP
|
||||||
|
/* Store actual state of VFP */
|
||||||
|
if (curthread == td1) {
|
||||||
|
critical_enter();
|
||||||
|
vfp_store(&td1->td_pcb->pcb_vfpstate, false);
|
||||||
|
critical_exit();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
td2->td_pcb = pcb2;
|
td2->td_pcb = pcb2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user