Lines Matching refs:processor
86 #include <kern/processor.h>
228 processor_t processor = current_processor();
233 * Create the idle processor thread.
235 idle_thread_create(processor);
247 * Remain on current processor as
251 thread_bind(processor);
279 * Create and initialize the physical copy window for processor 0
293 * Create and initialize the copy window for processor 0
296 * must be after IOKit has been started because IOKit performs processor
338 * Load the first thread to start a processor.
343 processor_t processor = current_processor();
347 * Use the idle processor thread if there
350 if (processor->next_thread == THREAD_NULL) {
351 thread = processor->idle_thread;
356 thread = processor->next_thread;
357 processor->next_thread = THREAD_NULL;
367 * First thread to execute on a started processor.
374 processor_t processor = current_processor();
380 * If running the idle processor thread,
383 if (self == processor->idle_thread)
393 * Start the first thread on a processor.
399 processor_t processor = current_processor();
408 processor_up(processor);
410 PMAP_ACTIVATE_KERNEL(processor->cpu_num);
426 * The idle processor threads are not counted as
432 processor->active_thread = thread;
433 processor->current_pri = thread->sched_pri;
434 processor->deadline = UINT64_MAX;
435 thread->last_processor = processor;
437 processor->last_dispatch = mach_absolute_time();
438 timer_start(&thread->system_timer, processor->last_dispatch);
439 PROCESSOR_DATA(processor, thread_timer) = PROCESSOR_DATA(processor, kernel_timer) = &thread->system_timer;
441 timer_start(&PROCESSOR_DATA(processor, system_state), processor->last_dispatch);
442 PROCESSOR_DATA(processor, current_state) = &PROCESSOR_DATA(processor, system_state);
444 PMAP_ACTIVATE_USER(thread, processor->cpu_num);