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

Function fpu_kern_thread

freebsd/amd64/amd64/fpu.c:1248–1260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1246}
1247
1248int
1249fpu_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
1262int
1263is_fpu_kern_thread(u_int flags)

Callers

nothing calls this directly

Calls 1

get_pcb_user_save_pcbFunction · 0.70

Tested by

no test coverage detected