Subversion Repositories HelenOS

Rev

Rev 3063 | Rev 3222 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3063 Rev 3104
Line 291... Line 291...
291
    t = (thread_t *) slab_alloc(thread_slab, 0);
291
    t = (thread_t *) slab_alloc(thread_slab, 0);
292
    if (!t)
292
    if (!t)
293
        return NULL;
293
        return NULL;
294
   
294
   
295
    /* Not needed, but good for debugging */
295
    /* Not needed, but good for debugging */
296
    memsetb((uintptr_t) t->kstack, THREAD_STACK_SIZE * 1 << STACK_FRAMES,
296
    memsetb(t->kstack, THREAD_STACK_SIZE * 1 << STACK_FRAMES, 0);
297
        0);
-
 
298
   
297
   
299
    ipl = interrupts_disable();
298
    ipl = interrupts_disable();
300
    spinlock_lock(&tidlock);
299
    spinlock_lock(&tidlock);
301
    t->tid = ++last_tid;
300
    t->tid = ++last_tid;
302
    spinlock_unlock(&tidlock);
301
    spinlock_unlock(&tidlock);