Subversion Repositories HelenOS-historic

Rev

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

Rev 842 Rev 860
Line 267... Line 267...
267
   
267
   
268
    t->rwlock_holder_type = RWLOCK_NONE;
268
    t->rwlock_holder_type = RWLOCK_NONE;
269
       
269
       
270
    t->task = task;
270
    t->task = task;
271
   
271
   
272
    t->fpu_context_exists=0;
272
    t->fpu_context_exists = 0;
273
    t->fpu_context_engaged=0;
273
    t->fpu_context_engaged = 0;
274
   
274
   
275
    /*
275
    /*
276
     * Register this thread in the system-wide list.
276
     * Register this thread in the system-wide list.
277
     */
277
     */
278
    ipl = interrupts_disable();
278
    ipl = interrupts_disable();
Line 286... Line 286...
286
    spinlock_lock(&task->lock);
286
    spinlock_lock(&task->lock);
287
    list_append(&t->th_link, &task->th_head);
287
    list_append(&t->th_link, &task->th_head);
288
    spinlock_unlock(&task->lock);
288
    spinlock_unlock(&task->lock);
289
   
289
   
290
    interrupts_restore(ipl);
290
    interrupts_restore(ipl);
291
 
291
   
292
    return t;
292
    return t;
293
}
293
}
294
 
294
 
295
 
295
 
296
/** Make thread exiting
296
/** Make thread exiting