Searched refs:cthread_self (Results 1 – 16 of 16) sorted by relevance
| /xnu-8020.140.41/osfmk/arm/ |
| H A D | machdep_call.c | 84 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 D | thread.h | 120 #define cthread_self PcbData.VFPpadding_cthread_self macro 123 vm_address_t cthread_self; /* for use of cthread package */ member
|
| H A D | pcb.c | 169 thread->machine.cthread_self = 0; in machine_thread_create() 437 thread->machine.cthread_self = tsd_base; in machine_thread_set_tsd_base()
|
| H A D | status.c | 577 target->machine.cthread_self = self->machine.cthread_self; in machine_thread_dup()
|
| H A D | genassym.c | 136 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
|
| /xnu-8020.140.41/osfmk/i386/ |
| H A D | pcb_native.c | 599 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 D | bsd_i386_native.c | 103 child_pcb->cthread_self = parent_pcb->cthread_self; in machine_thread_dup()
|
| H A D | thread.h | 129 uint64_t cthread_self; /* for use of cthread package */ member
|
| H A D | genassym.c | 146 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
|
| H A D | pcb.c | 647 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 D | ldt.c | 861 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 D | genassym.c | 129 DECLARE("TH_CTH_SELF", offsetof(struct thread, machine.cthread_self)); in main()
|
| H A D | pcb.c | 218 thread->machine.cthread_self = 0; in machine_thread_create() 1007 thread->machine.cthread_self = tsd_base; in machine_thread_set_tsd_base()
|
| H A D | status.c | 1641 target->machine.cthread_self = self->machine.cthread_self; in machine_thread_dup()
|
| /xnu-8020.140.41/osfmk/kern/ |
| H A D | bsd_kern.c | 1110 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 D | thread.c | 1963 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()
|