Rev 1705 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1705 | Rev 1729 | ||
---|---|---|---|
Line 104... | Line 104... | ||
104 | spinlock_lock(&t->lock); |
104 | spinlock_lock(&t->lock); |
105 | t->flags |= X_WIRED; |
105 | t->flags |= X_WIRED; |
106 | t->cpu = &cpus[0]; |
106 | t->cpu = &cpus[0]; |
107 | spinlock_unlock(&t->lock); |
107 | spinlock_unlock(&t->lock); |
108 | thread_ready(t); |
108 | thread_ready(t); |
109 | } |
- | |
110 | else { |
109 | } else |
111 | panic("thread_create/kmp\n"); |
110 | panic("thread_create/kmp\n"); |
112 | } |
- | |
113 | thread_join(t); |
111 | thread_join(t); |
114 | thread_detach(t); |
112 | thread_detach(t); |
115 | } |
113 | } |
116 | #endif /* CONFIG_SMP */ |
114 | #endif /* CONFIG_SMP */ |
117 | /* |
115 | /* |
Line 132... | Line 130... | ||
132 | spinlock_lock(&t->lock); |
130 | spinlock_lock(&t->lock); |
133 | t->flags |= X_WIRED; |
131 | t->flags |= X_WIRED; |
134 | t->cpu = &cpus[i]; |
132 | t->cpu = &cpus[i]; |
135 | spinlock_unlock(&t->lock); |
133 | spinlock_unlock(&t->lock); |
136 | thread_ready(t); |
134 | thread_ready(t); |
137 | } |
135 | } else |
138 | else panic("thread_create/kcpulb\n"); |
136 | panic("thread_create/kcpulb\n"); |
139 | 137 | ||
140 | } |
138 | } |
141 | } |
139 | } |
142 | #endif /* CONFIG_SMP */ |
140 | #endif /* CONFIG_SMP */ |
143 | 141 | ||
Line 195... | Line 193... | ||
195 | 193 | ||
196 | } |
194 | } |
197 | 195 | ||
198 | /** @} |
196 | /** @} |
199 | */ |
197 | */ |
200 | - |