| 1246 | } |
| 1247 | |
| 1248 | int |
| 1249 | fpu_kern_thread(u_int flags) |
| 1250 | { |
| 1251 | |
| 1252 | KASSERT((curthread->td_pflags & TDP_KTHREAD) != 0, |
| 1253 | ("Only kthread may use fpu_kern_thread")); |
| 1254 | KASSERT(curpcb->pcb_save == get_pcb_user_save_pcb(curpcb), |
| 1255 | ("mangled pcb_save")); |
| 1256 | KASSERT(PCB_USER_FPU(curpcb), ("recursive call")); |
| 1257 | |
| 1258 | set_pcb_flags(curpcb, PCB_KERNFPU | PCB_KERNFPU_THR); |
| 1259 | return (0); |
| 1260 | } |
| 1261 | |
| 1262 | int |
| 1263 | is_fpu_kern_thread(u_int flags) |
nothing calls this directly
no test coverage detected