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

Function cpu_thread_clean

freebsd/amd64/amd64/vm_machdep.c:319–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319void
320cpu_thread_clean(struct thread *td)
321{
322 struct pcb *pcb;
323
324 pcb = td->td_pcb;
325
326 /*
327 * Clean TSS/iomap
328 */
329 if (pcb->pcb_tssp != NULL) {
330 pmap_pti_remove_kva((vm_offset_t)pcb->pcb_tssp,
331 (vm_offset_t)pcb->pcb_tssp + ctob(IOPAGES + 1));
332 kmem_free((vm_offset_t)pcb->pcb_tssp, ctob(IOPAGES + 1));
333 pcb->pcb_tssp = NULL;
334 }
335}
336
337void
338cpu_thread_swapin(struct thread *td)

Callers 2

cpu_thread_freeFunction · 0.70
cpu_set_upcallFunction · 0.70

Calls 2

pmap_pti_remove_kvaFunction · 0.85
kmem_freeFunction · 0.50

Tested by

no test coverage detected