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

Function cpu_thread_exit

freebsd/amd64/amd64/vm_machdep.c:300–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void
301cpu_thread_exit(struct thread *td)
302{
303 struct pcb *pcb;
304
305 critical_enter();
306 if (td == PCPU_GET(fpcurthread))
307 fpudrop();
308 critical_exit();
309
310 pcb = td->td_pcb;
311
312 /* Disable any hardware breakpoints. */
313 if (pcb->pcb_flags & PCB_DBREGS) {
314 reset_dbregs();
315 clear_pcb_flags(pcb, PCB_DBREGS);
316 }
317}
318
319void
320cpu_thread_clean(struct thread *td)

Callers

nothing calls this directly

Calls 5

fpudropFunction · 0.85
reset_dbregsFunction · 0.85
clear_pcb_flagsFunction · 0.85
critical_enterFunction · 0.50
critical_exitFunction · 0.50

Tested by

no test coverage detected