MCPcopy Create free account
hub / github.com/F-Stack/f-stack / fpuexit

Function fpuexit

freebsd/amd64/amd64/fpu.c:503–515  ·  view source on GitHub ↗

* Free coprocessor (if we have it). */

Source from the content-addressed store, hash-verified

501 * Free coprocessor (if we have it).
502 */
503void
504fpuexit(struct thread *td)
505{
506
507 critical_enter();
508 if (curthread == PCPU_GET(fpcurthread)) {
509 stop_emulating();
510 fpusave(curpcb->pcb_save);
511 start_emulating();
512 PCPU_SET(fpcurthread, NULL);
513 }
514 critical_exit();
515}
516
517int
518fpuformat(void)

Callers 3

restore_guest_fpustateFunction · 0.85
cpu_forkFunction · 0.85
fpu_kern_enterFunction · 0.85

Calls 2

critical_enterFunction · 0.50
critical_exitFunction · 0.50

Tested by

no test coverage detected