Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/amd64/vm_machdep.c
Show First 20 Lines • Show All 358 Lines • ▼ Show 20 Lines | cpu_thread_alloc(struct thread *td) | ||||
td->td_pcb = pcb = get_pcb_td(td); | td->td_pcb = pcb = get_pcb_td(td); | ||||
td->td_frame = (struct trapframe *)td->td_md.md_stack_base - 1; | td->td_frame = (struct trapframe *)td->td_md.md_stack_base - 1; | ||||
pcb->pcb_save = get_pcb_user_save_pcb(pcb); | pcb->pcb_save = get_pcb_user_save_pcb(pcb); | ||||
if (use_xsave) { | if (use_xsave) { | ||||
xhdr = (struct xstate_hdr *)(pcb->pcb_save + 1); | xhdr = (struct xstate_hdr *)(pcb->pcb_save + 1); | ||||
bzero(xhdr, sizeof(*xhdr)); | bzero(xhdr, sizeof(*xhdr)); | ||||
xhdr->xstate_bv = xsave_mask; | xhdr->xstate_bv = xsave_mask; | ||||
} | } | ||||
td->td_md.md_pmap_reserv = 0; | |||||
} | } | ||||
void | void | ||||
cpu_thread_free(struct thread *td) | cpu_thread_free(struct thread *td) | ||||
{ | { | ||||
cpu_thread_clean(td); | cpu_thread_clean(td); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 291 Lines • Show Last 20 Lines |