* Free coprocessor (if we have it). */
| 501 | * Free coprocessor (if we have it). |
| 502 | */ |
| 503 | void |
| 504 | fpuexit(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 | |
| 517 | int |
| 518 | fpuformat(void) |
no test coverage detected