Subversion Repositories HelenOS-historic

Rev

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

Rev 532 Rev 533
Line 173... Line 173...
173
    if (t) {
173
    if (t) {
174
        ipl_t ipl;
174
        ipl_t ipl;
175
   
175
   
176
        spinlock_initialize(&t->lock);
176
        spinlock_initialize(&t->lock);
177
   
177
   
178
        frame_ks = frame_alloc(FRAME_KA);
178
        frame_ks = frame_alloc(FRAME_KA,0);
179
        if (THREAD_USER_STACK & flags) {
179
        if (THREAD_USER_STACK & flags) {
180
            frame_us = frame_alloc(FRAME_KA);
180
            frame_us = frame_alloc(FRAME_KA,0);
181
        }
181
        }
182
 
182
 
183
        ipl = interrupts_disable();
183
        ipl = interrupts_disable();
184
        spinlock_lock(&tidlock);
184
        spinlock_lock(&tidlock);
185
        t->tid = ++last_tid;
185
        t->tid = ++last_tid;