Rev 4337 | Rev 4341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4337 | Rev 4339 | ||
|---|---|---|---|
| Line 108... | Line 108... | ||
| 108 | spinlock_lock(&thread->lock); |
108 | spinlock_lock(&thread->lock); |
| 109 | thread->cpu = &cpus[0]; |
109 | thread->cpu = &cpus[0]; |
| 110 | spinlock_unlock(&thread->lock); |
110 | spinlock_unlock(&thread->lock); |
| 111 | thread_ready(thread); |
111 | thread_ready(thread); |
| 112 | } else |
112 | } else |
| 113 | panic("Unable to create kmp thread\n"); |
113 | panic("Unable to create kmp thread."); |
| 114 | thread_join(thread); |
114 | thread_join(thread); |
| 115 | thread_detach(thread); |
115 | thread_detach(thread); |
| 116 | } |
116 | } |
| 117 | #endif /* CONFIG_SMP */ |
117 | #endif /* CONFIG_SMP */ |
| 118 | 118 | ||