Lines Matching refs:thread

84 #include <kern/thread.h>
205 thread_t thread = current_thread();
208 if (thread_is_64bit(thread)) {
211 uregs = USER_REGS64(thread);
217 uregs = USER_REGS32(thread);
224 pal_dbg_page_fault( thread, vaddr, kr );
397 && ((current_thread()->state & TH_IDLE) == 0) /* idle-in-place should be treated like the idle thread */
510 thread_t thread;
521 thread = current_thread();
580 if (__probable(thread != THREAD_NULL && thread->map != kernel_map)) {
600 if (thread->machine.copy_window[window_index].user_base != (user_addr_t)-1) {
603 vaddr = thread->machine.copy_window[window_index].user_base + kvaddr;
605 map = thread->map;
613 map = thread->map;
633 (thread->machine.specFlags&CopyIOActive) &&
689 if (thread != THREAD_NULL && thread->options & TH_OPT_DTRACE) { /* Executing under dtrace_probe? */
719 copy_window_fault(thread, map,
746 * Check thread recovery address also.
748 if (thread != THREAD_NULL && thread->recover) {
749 set_recovery_ip(saved_state, thread->recover);
750 thread->recover = 0;
770 * current thread's stack (if any) is synchronized with the
878 thread_t thread = current_thread();
884 assert((is_saved_state32(saved_state) && !thread_is_64bit(thread)) ||
885 (is_saved_state64(saved_state) && thread_is_64bit(thread)));
913 if ((type == T_DEBUG) && thread->machine.ids) {
979 pcb = THREAD_TO_PCB(thread);
983 * in 32-bit mode even on a 64-bit thread
987 if (thread_is_64bit(thread)) {
990 } else { /* 32 bit thread */
1077 kret = vm_fault(thread->map,
1175 /* Synchronize a thread's x86_kernel_state (if any) with the given