Rev 413 | Rev 430 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 413 | Rev 414 | ||
---|---|---|---|
Line 193... | Line 193... | ||
193 | link_initialize(&t->threads_link); |
193 | link_initialize(&t->threads_link); |
194 | t->kstack = (__u8 *) frame_ks; |
194 | t->kstack = (__u8 *) frame_ks; |
195 | t->ustack = (__u8 *) frame_us; |
195 | t->ustack = (__u8 *) frame_us; |
196 | 196 | ||
197 | context_save(&t->saved_context); |
197 | context_save(&t->saved_context); |
198 | context_set(&t->saved_context, FADDR(cushion), t->kstack, THREAD_STACK_SIZE); |
198 | context_set(&t->saved_context, FADDR(cushion), (__address) t->kstack, THREAD_STACK_SIZE); |
199 | 199 | ||
200 | the_initialize((the_t *) t->kstack); |
200 | the_initialize((the_t *) t->kstack); |
201 | 201 | ||
202 | ipl = interrupts_disable(); |
202 | ipl = interrupts_disable(); |
203 | t->saved_context.ipl = interrupts_read(); |
203 | t->saved_context.ipl = interrupts_read(); |