Home
last modified time | relevance | path

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

/xnu-8020.140.41/osfmk/arm/
H A Dmachdep_call.c84 assert( self == current_thread()->machine.cthread_self); in thread_get_cthread_self()
85 return (kern_return_t) current_thread()->machine.cthread_self; in thread_get_cthread_self()
87 assert( self == current_thread()->machine.cthread_self); in thread_get_cthread_self()
H A Dthread.h120 #define cthread_self PcbData.VFPpadding_cthread_self macro
123 vm_address_t cthread_self; /* for use of cthread package */ member
H A Dpcb.c169 thread->machine.cthread_self = 0; in machine_thread_create()
437 thread->machine.cthread_self = tsd_base; in machine_thread_set_tsd_base()
H A Dstatus.c577 target->machine.cthread_self = self->machine.cthread_self; in machine_thread_dup()
H A Dgenassym.c136 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
/xnu-8020.140.41/osfmk/i386/
H A Dpcb_native.c599 if ((pcb->cthread_self != 0) || (get_threadtask(new) != kernel_task)) { in act_machine_switch_pcb()
600 if ((cdp->cpu_uber.cu_user_gs_base != pcb->cthread_self) || in act_machine_switch_pcb()
601 (pcb->cthread_self != rdmsr64(MSR_IA32_KERNEL_GS_BASE))) { in act_machine_switch_pcb()
602 cdp->cpu_uber.cu_user_gs_base = pcb->cthread_self; in act_machine_switch_pcb()
603 wrmsr64(MSR_IA32_KERNEL_GS_BASE, pcb->cthread_self); in act_machine_switch_pcb()
633 cdp->cpu_uber.cu_user_gs_base = pcb->cthread_self; in act_machine_switch_pcb()
814 pcb->cthread_self = 0; in machine_thread_create()
891 pcb->cthread_self = tsd_base; in machine_thread_set_tsd_base()
916 if ((cdp->cpu_uber.cu_user_gs_base != pcb->cthread_self) || in machine_thread_set_tsd_base()
917 (pcb->cthread_self != rdmsr64(MSR_IA32_KERNEL_GS_BASE))) { in machine_thread_set_tsd_base()
H A Dbsd_i386_native.c103 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.c146 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
H A Dpcb.c647 ts->gs = thread->machine.cthread_self ? USER_CTHREAD : NULL_SEG; in set_thread_state32()
821 thread->machine.cthread_self; in get_thread_state64()
/xnu-8020.140.41/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-8020.140.41/osfmk/arm64/
H A Dgenassym.c129 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
H A Dpcb.c218 thread->machine.cthread_self = 0; in machine_thread_create()
1007 thread->machine.cthread_self = tsd_base; in machine_thread_set_tsd_base()
H A Dstatus.c1641 target->machine.cthread_self = self->machine.cthread_self; in machine_thread_dup()
/xnu-8020.140.41/osfmk/kern/
H A Dbsd_kern.c1110 addr = (thuniqueid) ? thact->thread_id : thact->machine.cthread_self; in fill_taskthreadinfo()
1159 thaddr = (thuniqueid) ? thact->thread_id : thact->machine.cthread_self; in fill_taskthreadlist()
H A Dthread.c1963 identifier_info->thread_handle = thread->machine.cthread_self; in thread_info_internal()
3080 thread_handle = thread->machine.cthread_self; in thread_dispatchqaddr()
3108 thread_handle = thread->machine.cthread_self; in thread_wqquantum_addr()
3135 thread_handle = thread->machine.cthread_self; in thread_rettokern_addr()