Lines Matching refs:thread
81 thread_t thread;
92 thread = current_thread();
96 nbytes, thread->machine.copyio_state, 0);
101 pmap = thread->map->pmap;
110 ((nbytes && (user_addr+nbytes <= user_addr)) || ((user_addr + nbytes) > vm_map_max(thread->map)))) {
119 * we need to switch back to the user's map/cr3. The thread is flagged
120 * "CopyIOActive" at this time so that if the thread is pre-empted,
123 recursive_CopyIOActive = thread->machine.specFlags & CopyIOActive;
124 thread->machine.specFlags |= CopyIOActive;
132 * Ensure that we're running on the target thread's cr3.
214 thread->machine.specFlags &= ~CopyIOActive;