Rev 3578 | Rev 3617 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3578 | Rev 3581 | ||
|---|---|---|---|
| Line 293... | Line 293... | ||
| 293 | ipl_t ipl; |
293 | ipl_t ipl; |
| 294 | 294 | ||
| 295 | t = (thread_t *) slab_alloc(thread_slab, 0); |
295 | t = (thread_t *) slab_alloc(thread_slab, 0); |
| 296 | if (!t) |
296 | if (!t) |
| 297 | return NULL; |
297 | return NULL; |
| - | 298 | ||
| 298 | /* Not needed, but good for debugging */ |
299 | /* Not needed, but good for debugging */ |
| 299 | memsetb(t->kstack, THREAD_STACK_SIZE * 1 << STACK_FRAMES, 0); |
300 | memsetb(t->kstack, THREAD_STACK_SIZE * 1 << STACK_FRAMES, 0); |
| 300 | 301 | ||
| 301 | ipl = interrupts_disable(); |
302 | ipl = interrupts_disable(); |
| 302 | spinlock_lock(&tidlock); |
303 | spinlock_lock(&tidlock); |