Rev 2039 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2039 | Rev 2042 | ||
---|---|---|---|
Line 96... | Line 96... | ||
96 | * Create the kmp thread and wait for its completion. |
96 | * Create the kmp thread and wait for its completion. |
97 | * cpu1 through cpuN-1 will come up consecutively and |
97 | * cpu1 through cpuN-1 will come up consecutively and |
98 | * not mess together with kcpulb threads. |
98 | * not mess together with kcpulb threads. |
99 | * Just a beautification. |
99 | * Just a beautification. |
100 | */ |
100 | */ |
101 | if ((t = thread_create(kmp, NULL, TASK, THREAD_FLAG_WIRED, "kmp"))) { |
101 | if ((t = thread_create(kmp, NULL, TASK, THREAD_FLAG_WIRED, "kmp", true))) { |
102 | spinlock_lock(&t->lock); |
102 | spinlock_lock(&t->lock); |
103 | t->cpu = &cpus[0]; |
103 | t->cpu = &cpus[0]; |
104 | spinlock_unlock(&t->lock); |
104 | spinlock_unlock(&t->lock); |
105 | thread_ready(t); |
105 | thread_ready(t); |
106 | } else |
106 | } else |
Line 121... | Line 121... | ||
121 | /* |
121 | /* |
122 | * For each CPU, create its load balancing thread. |
122 | * For each CPU, create its load balancing thread. |
123 | */ |
123 | */ |
124 | for (i = 0; i < config.cpu_count; i++) { |
124 | for (i = 0; i < config.cpu_count; i++) { |
125 | 125 | ||
126 | if ((t = thread_create(kcpulb, NULL, TASK, THREAD_FLAG_WIRED, "kcpulb"))) { |
126 | if ((t = thread_create(kcpulb, NULL, TASK, THREAD_FLAG_WIRED, "kcpulb", true))) { |
127 | spinlock_lock(&t->lock); |
127 | spinlock_lock(&t->lock); |
128 | t->cpu = &cpus[i]; |
128 | t->cpu = &cpus[i]; |
129 | spinlock_unlock(&t->lock); |
129 | spinlock_unlock(&t->lock); |
130 | thread_ready(t); |
130 | thread_ready(t); |
131 | } else |
131 | } else |
Line 141... | Line 141... | ||
141 | arch_post_smp_init(); |
141 | arch_post_smp_init(); |
142 | 142 | ||
143 | /* |
143 | /* |
144 | * Create kernel console. |
144 | * Create kernel console. |
145 | */ |
145 | */ |
146 | if ((t = thread_create(kconsole, "kconsole", TASK, 0, "kconsole"))) |
146 | if ((t = thread_create(kconsole, "kconsole", TASK, 0, "kconsole", false))) |
147 | thread_ready(t); |
147 | thread_ready(t); |
148 | else |
148 | else |
149 | panic("thread_create/kconsole\n"); |
149 | panic("thread_create/kconsole\n"); |
150 | 150 | ||
151 | interrupts_enable(); |
151 | interrupts_enable(); |