Lines Matching defs:thread
667 * - a cache of up to NCOPY_WINDOWS is maintained per thread for
683 * that region... thus the thread can be pre-empted and switched
686 * from under the thread... this can happen during vfork/exec...
739 void inval_copy_windows(thread_t thread)
744 thread->machine.copy_window[i].user_base = -1;
746 thread->machine.nxt_window = 0;
747 thread->machine.copyio_state = WINDOWS_DIRTY;
749 KERNEL_DEBUG(0xeff70058 | DBG_FUNC_NONE, (int)thread, (int)thread->map, 0, 0, 0);
757 thread_t thread;
775 thread = current_thread();
778 (int)nbytes, thread->machine.copyio_state, 0);
785 pmap = thread->map->pmap;
788 thread->machine.specFlags |= CopyIOActive;
822 thread->machine.specFlags &= ~CopyIOActive;
840 copyio_state = thread->machine.copyio_state;
841 thread->machine.copyio_state = WINDOWS_OPENED;
849 if (thread->machine.copy_window[window_index].user_base == user_base)
854 window_index = thread->machine.nxt_window;
855 thread->machine.nxt_window++;
857 if (thread->machine.nxt_window >= NCOPY_WINDOWS)
858 thread->machine.nxt_window = 0;
859 thread->machine.copy_window[window_index].user_base = user_base;
993 thread->machine.copyio_state = WINDOWS_CLOSED;
999 thread->machine.specFlags &= ~CopyIOActive;