Searched refs:cthread_self (Results 1 - 10 of 10) sorted by relevance

/darwin-on-arm/xnu/osfmk/arm/
H A Dthread.h83 uint64_t cthread_self; /* for use of cthread package */ member in struct:machine_thread
H A Dpcb.c107 arm_set_threadpid_user_readonly((uint32_t *) thread->machine.cthread_self);
115 curthr->machine.cthread_self = cthr;
116 arm_set_threadpid_user_readonly((uint32_t *) curthr->machine.cthread_self);
123 return curthr->machine.cthread_self;
402 target->machine.cthread_self = self->machine.cthread_self;
H A Dgenassym.c201 offsetof(thread_t, machine.cthread_self));
/darwin-on-arm/xnu/osfmk/i386/
H A Dbsd_i386_native.c107 child_pcb->cthread_self = parent_pcb->cthread_self;
175 current_thread()->machine.cthread_self = (uint64_t) self; /* preserve old func too */
206 pcb->cthread_self = self;
210 if ((cdp->cpu_uber.cu_user_gs_base != pcb->cthread_self) ||
211 (pcb->cthread_self != rdmsr64(MSR_IA32_KERNEL_GS_BASE)))
H A Dpcb_native.c206 if ((pcb->cthread_self != 0) || (new->task != kernel_task)) {
207 if ((cdp->cpu_uber.cu_user_gs_base != pcb->cthread_self) || (pcb->cthread_self != rdmsr64(MSR_IA32_KERNEL_GS_BASE))) {
208 cdp->cpu_uber.cu_user_gs_base = pcb->cthread_self;
209 wrmsr64(MSR_IA32_KERNEL_GS_BASE, pcb->cthread_self);
261 cdp->cpu_uber.cu_user_gs_base = pcb->cthread_self;
410 cdp->cpu_uber.cu_user_gs_base = pcb->cthread_self;
618 pcb->cthread_self = 0;
H A Dthread.h140 uint64_t cthread_self; /* for use of cthread package */ member in struct:machine_thread
/darwin-on-arm/xnu/osfmk/arm64/
H A Dthread_initialize.c88 arm_set_threadpid_user_readonly((uint64_t*)CurrentThread->machine.cthread_self);
97 curthr->machine.cthread_self = cthr;
98 arm_set_threadpid_user_readonly((uint64_t*)curthr->machine.cthread_self);
106 return curthr->machine.cthread_self;
H A Dgenassym.c178 DECLARE("MACHINE_THREAD_CTHREAD_SELF", offsetof(thread_t, machine.cthread_self));
/darwin-on-arm/xnu/osfmk/kern/
H A Dbsd_kern.c651 addr = (thuniqueid==0)?thact->machine.cthread_self: thact->thread_id;
701 thaddr = thact->machine.cthread_self;
H A Dthread.c1201 identifier_info->thread_handle = thread->machine.cthread_self;
1719 thread_handle = thread->machine.cthread_self;

Completed in 45 milliseconds