Rev 76 | Rev 97 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 76 | Rev 81 | ||
---|---|---|---|
Line 164... | Line 164... | ||
164 | t->ustack = (__u8 *) frame_us; |
164 | t->ustack = (__u8 *) frame_us; |
165 | 165 | ||
166 | 166 | ||
167 | context_save(&t->saved_context); |
167 | context_save(&t->saved_context); |
168 | t->saved_context.pc = FADDR(cushion); |
168 | t->saved_context.pc = FADDR(cushion); |
169 | t->saved_context.sp = (__address) &t->kstack[THREAD_STACK_SIZE-8]; |
169 | t->saved_context.sp = (__address) &t->kstack[THREAD_STACK_SIZE-SP_DELTA]; |
170 | 170 | ||
171 | pri = cpu_priority_high(); |
171 | pri = cpu_priority_high(); |
172 | t->saved_context.pri = cpu_priority_read(); |
172 | t->saved_context.pri = cpu_priority_read(); |
173 | cpu_priority_restore(pri); |
173 | cpu_priority_restore(pri); |
174 | 174 |