| 736 | } |
| 737 | |
| 738 | int |
| 739 | fputrap_sse(void) |
| 740 | { |
| 741 | u_int mxcsr; |
| 742 | |
| 743 | critical_enter(); |
| 744 | if (PCPU_GET(fpcurthread) != curthread) |
| 745 | mxcsr = curpcb->pcb_save->sv_env.en_mxcsr; |
| 746 | else |
| 747 | stmxcsr(&mxcsr); |
| 748 | critical_exit(); |
| 749 | return (fpetable[(mxcsr & (~mxcsr >> 7)) & 0x3f]); |
| 750 | } |
| 751 | |
| 752 | static void |
| 753 | restore_fpu_curthread(struct thread *td) |
no test coverage detected