Home
last modified time | relevance | path

Searched refs:cthread_self (Results 1 – 13 of 13) sorted by relevance

/xnu-11417.121.6/osfmk/i386/
H A Dpcb_native.c601 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()
H A Dbsd_i386_native.c102 child_pcb->cthread_self = parent_pcb->cthread_self; in machine_thread_dup()
H A Dthread.h129 uint64_t cthread_self; /* for use of cthread package */ member
H A Dgenassym.c137 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
H A Dpcb.c671 ts->gs = thread->machine.cthread_self ? USER_CTHREAD : NULL_SEG; in set_thread_state32()
845 thread->machine.cthread_self; in get_thread_state64()
/xnu-11417.121.6/osfmk/arm/
H A Dmachdep_call.c74 assert( self == current_thread()->machine.cthread_self); in thread_get_cthread_self()
H A Dthread.h128 vm_address_t cthread_self; /* for use of cthread package */ member
/xnu-11417.121.6/tests/
H A Dldt.c861 uint64_t cthread_self = 0; in thread_32bit() local
864 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()
/xnu-11417.121.6/osfmk/arm64/
H A Dgenassym.c160 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
H A Dpcb.c391 thread->machine.cthread_self = 0; in machine_thread_create()
1401 thread->machine.cthread_self = tsd_base; in machine_thread_set_tsd_base()
H A Dstatus.c2129 target->machine.cthread_self = self->machine.cthread_self;
/xnu-11417.121.6/osfmk/kern/
H A Dbsd_kern.c1141 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()
H A Dthread.c2090 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()