Lines Matching defs:processor

86 #include <kern/processor.h>
270 processor_t processor = current_processor();
275 * Create the idle processor thread.
277 idle_thread_create(processor);
301 * Remain on current processor as
305 thread_bind(processor);
328 * Create and initialize the physical copy window for processor 0
361 * Create and initialize the copy window for processor 0
364 * must be after IOKit has been started because IOKit performs processor
429 * Load the first thread to start a processor.
434 processor_t processor = current_processor();
438 * Use the idle processor thread if there
441 if (processor->next_thread == THREAD_NULL) {
442 thread = processor->idle_thread;
447 thread = processor->next_thread;
448 processor->next_thread = THREAD_NULL;
458 * First thread to execute on a started processor.
465 processor_t processor = current_processor();
471 * If running the idle processor thread,
474 if (self == processor->idle_thread)
484 * Start the first thread on a processor.
490 processor_t processor = current_processor();
498 processor_up(processor);
500 PMAP_ACTIVATE_KERNEL(processor->cpu_id);
516 * The idle processor threads are not counted as
522 processor->active_thread = thread;
523 processor->current_pri = thread->sched_pri;
524 processor->current_thmode = thread->sched_mode;
525 processor->deadline = UINT64_MAX;
526 thread->last_processor = processor;
528 processor->last_dispatch = mach_absolute_time();
529 timer_start(&thread->system_timer, processor->last_dispatch);
530 PROCESSOR_DATA(processor, thread_timer) = PROCESSOR_DATA(processor, kernel_timer) = &thread->system_timer;
532 timer_start(&PROCESSOR_DATA(processor, system_state), processor->last_dispatch);
533 PROCESSOR_DATA(processor, current_state) = &PROCESSOR_DATA(processor, system_state);
535 PMAP_ACTIVATE_USER(thread, processor->cpu_id);