Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/vm_machdep.c
Show First 20 Lines • Show All 333 Lines • ▼ Show 20 Lines | cpu_thread_clean(struct thread *td) | ||||
struct pcb *pcb; | struct pcb *pcb; | ||||
pcb = td->td_pcb; | pcb = td->td_pcb; | ||||
/* | /* | ||||
* Clean TSS/iomap | * Clean TSS/iomap | ||||
*/ | */ | ||||
if (pcb->pcb_tssp != NULL) { | if (pcb->pcb_tssp != NULL) { | ||||
pmap_pti_remove_kva((vm_offset_t)pcb->pcb_tssp, | |||||
(vm_offset_t)pcb->pcb_tssp + ctob(IOPAGES + 1)); | |||||
kmem_free(kernel_arena, (vm_offset_t)pcb->pcb_tssp, | kmem_free(kernel_arena, (vm_offset_t)pcb->pcb_tssp, | ||||
ctob(IOPAGES + 1)); | ctob(IOPAGES + 1)); | ||||
pcb->pcb_tssp = NULL; | pcb->pcb_tssp = NULL; | ||||
} | } | ||||
} | } | ||||
void | void | ||||
cpu_thread_swapin(struct thread *td) | cpu_thread_swapin(struct thread *td) | ||||
▲ Show 20 Lines • Show All 376 Lines • Show Last 20 Lines |