Rev 111 | Rev 125 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 111 | Rev 115 | ||
---|---|---|---|
Line 174... | Line 174... | ||
174 | 174 | ||
175 | spinlock_initialize(&t->lock); |
175 | spinlock_initialize(&t->lock); |
176 | 176 | ||
177 | frame_ks = frame_alloc(FRAME_KA); |
177 | frame_ks = frame_alloc(FRAME_KA); |
178 | if (THREAD_USER_STACK & flags) { |
178 | if (THREAD_USER_STACK & flags) { |
179 | frame_us = frame_alloc(0); |
179 | frame_us = frame_alloc(FRAME_KA); |
180 | } |
180 | } |
181 | 181 | ||
182 | pri = cpu_priority_high(); |
182 | pri = cpu_priority_high(); |
183 | spinlock_lock(&tidlock); |
183 | spinlock_lock(&tidlock); |
184 | t->tid = ++last_tid; |
184 | t->tid = ++last_tid; |