Called from the context switch */
| 836 | |
| 837 | void fpu_activate_sw(struct thread *td); /* Called from the context switch */ |
| 838 | void |
| 839 | fpu_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 | |
| 850 | void |
| 851 | fpudrop(void) |
nothing calls this directly
no test coverage detected