Subversion Repositories HelenOS

Rev

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

Rev 783 Rev 786
Line 164... Line 164...
164
    if (t) {
164
    if (t) {
165
        ipl_t ipl;
165
        ipl_t ipl;
166
   
166
   
167
        spinlock_initialize(&t->lock, "thread_t_lock");
167
        spinlock_initialize(&t->lock, "thread_t_lock");
168
   
168
   
169
        frame_ks = frame_alloc(FRAME_KA, ONE_FRAME, NULL, NULL);
169
        frame_ks = frame_alloc(ONE_FRAME, FRAME_KA);
170
        if (THREAD_USER_STACK & flags) {
170
        if (THREAD_USER_STACK & flags) {
171
            frame_us = frame_alloc(FRAME_KA, ONE_FRAME, NULL,NULL);
171
            frame_us = frame_alloc(ONE_FRAME, FRAME_KA);
172
        }
172
        }
173
 
173
 
174
        ipl = interrupts_disable();
174
        ipl = interrupts_disable();
175
        spinlock_lock(&tidlock);
175
        spinlock_lock(&tidlock);
176
        t->tid = ++last_tid;
176
        t->tid = ++last_tid;