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

Function fpu_activate_sw

freebsd/amd64/amd64/fpu.c:838–848  ·  view source on GitHub ↗

Called from the context switch */

Source from the content-addressed store, hash-verified

836
837void fpu_activate_sw(struct thread *td); /* Called from the context switch */
838void
839fpu_activate_sw(struct thread *td)
840{
841
842 if ((td->td_pflags & TDP_KTHREAD) != 0 || !PCB_USER_FPU(td->td_pcb)) {
843 PCPU_SET(fpcurthread, NULL);
844 start_emulating();
845 } else if (PCPU_GET(fpcurthread) != td) {
846 restore_fpu_curthread(td);
847 }
848}
849
850void
851fpudrop(void)

Callers

nothing calls this directly

Calls 1

restore_fpu_curthreadFunction · 0.85

Tested by

no test coverage detected