Subversion Repositories HelenOS-historic

Rev

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

Rev 689 Rev 762
Line 171... Line 171...
171
    if (t) {
171
    if (t) {
172
        ipl_t ipl;
172
        ipl_t ipl;
173
   
173
   
174
        spinlock_initialize(&t->lock, "thread_t_lock");
174
        spinlock_initialize(&t->lock, "thread_t_lock");
175
   
175
   
176
        frame_ks = frame_alloc(FRAME_KA, ONE_FRAME, NULL);
176
        frame_ks = frame_alloc(FRAME_KA, ONE_FRAME, NULL, NULL);
177
        if (THREAD_USER_STACK & flags) {
177
        if (THREAD_USER_STACK & flags) {
178
            frame_us = frame_alloc(FRAME_KA, ONE_FRAME, NULL);
178
            frame_us = frame_alloc(FRAME_KA, ONE_FRAME, NULL,NULL);
179
        }
179
        }
180
 
180
 
181
        ipl = interrupts_disable();
181
        ipl = interrupts_disable();
182
        spinlock_lock(&tidlock);
182
        spinlock_lock(&tidlock);
183
        t->tid = ++last_tid;
183
        t->tid = ++last_tid;