Rev 534 | Rev 552 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 548 | ||
---|---|---|---|
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,0); |
178 | frame_ks = frame_alloc(FRAME_KA, ONE_FRAME); |
179 | if (THREAD_USER_STACK & flags) { |
179 | if (THREAD_USER_STACK & flags) { |
180 | frame_us = frame_alloc(FRAME_KA,0); |
180 | frame_us = frame_alloc(FRAME_KA, ONE_FRAME); |
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; |