ASSERT (intr_get_level () == INTR_OFF);
lock_init (&tid_lock, "tid");
+ list_init (&ready_list);
/* Set up a thread structure for the running thread. */
initial_thread = running_thread ();
init_thread (initial_thread, "main", PRI_DEFAULT);
initial_thread->status = THREAD_RUNNING;
initial_thread->tid = allocate_tid ();
-
- /* Initialize run queue. */
- list_init (&ready_list);
}
/* Starts preemptive thread scheduling by enabling interrupts.