Searched refs:cthread_self (Results 1 – 13 of 13) sorted by relevance
601 if ((pcb->cthread_self != 0) || (get_threadtask(new) != kernel_task)) { in act_machine_switch_pcb()602 if ((cdp->cpu_uber.cu_user_gs_base != pcb->cthread_self) || in act_machine_switch_pcb()603 (pcb->cthread_self != rdmsr64(MSR_IA32_KERNEL_GS_BASE))) { in act_machine_switch_pcb()604 cdp->cpu_uber.cu_user_gs_base = pcb->cthread_self; in act_machine_switch_pcb()605 wrmsr64(MSR_IA32_KERNEL_GS_BASE, pcb->cthread_self); in act_machine_switch_pcb()635 cdp->cpu_uber.cu_user_gs_base = pcb->cthread_self; in act_machine_switch_pcb()816 pcb->cthread_self = 0; in machine_thread_create()910 pcb->cthread_self = tsd_base; in machine_thread_set_tsd_base()935 if ((cdp->cpu_uber.cu_user_gs_base != pcb->cthread_self) || in machine_thread_set_tsd_base()936 (pcb->cthread_self != rdmsr64(MSR_IA32_KERNEL_GS_BASE))) { in machine_thread_set_tsd_base()
102 child_pcb->cthread_self = parent_pcb->cthread_self; in machine_thread_dup()
129 uint64_t cthread_self; /* for use of cthread package */ member
137 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
671 ts->gs = thread->machine.cthread_self ? USER_CTHREAD : NULL_SEG; in set_thread_state32()845 thread->machine.cthread_self; in get_thread_state64()
74 assert( self == current_thread()->machine.cthread_self); in thread_get_cthread_self()
128 vm_address_t cthread_self; /* for use of cthread package */ member
861 uint64_t cthread_self = 0; in thread_32bit() local864 cthread_self = get_gsbase(); in thread_32bit()870 (void)stack_range_to_GSbase(targp->compat_stackaddr, cthread_self); in thread_32bit()873 printf("[thread %p] tsd base => %p\n", (void *)pthread_self(), (void *)cthread_self); in thread_32bit()
160 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
391 thread->machine.cthread_self = 0; in machine_thread_create()1401 thread->machine.cthread_self = tsd_base; in machine_thread_set_tsd_base()
2129 target->machine.cthread_self = self->machine.cthread_self;
1141 addr = (thuniqueid) ? thact->thread_id : thact->machine.cthread_self; in fill_taskthreadinfo()1190 thaddr = (thuniqueid) ? thact->thread_id : thact->machine.cthread_self; in fill_taskthreadlist()
2090 identifier_info->thread_handle = thread->machine.cthread_self; in thread_info_internal()3257 thread_handle = thread->machine.cthread_self; in thread_dispatchqaddr()3286 thread_handle = thread->machine.cthread_self; in thread_wqquantum_addr()3314 thread_handle = thread->machine.cthread_self; in thread_rettokern_addr()