Rev 3566 | Rev 3581 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3566 | Rev 3578 | ||
---|---|---|---|
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 | - | ||
299 | /* Not needed, but good for debugging */ |
298 | /* Not needed, but good for debugging */ |
300 | memsetb(t->kstack, THREAD_STACK_SIZE * 1 << STACK_FRAMES, 0); |
299 | memsetb(t->kstack, THREAD_STACK_SIZE * 1 << STACK_FRAMES, 0); |
301 | 300 | ||
302 | ipl = interrupts_disable(); |
301 | ipl = interrupts_disable(); |
303 | spinlock_lock(&tidlock); |
302 | spinlock_lock(&tidlock); |