Subversion Repositories HelenOS-historic

Rev

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

Rev 81 Rev 97
Line 163... Line 163...
163
        t->kstack = (__u8 *) frame_ks;
163
        t->kstack = (__u8 *) frame_ks;
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);
-
 
169
        t->saved_context.sp = (__address) &t->kstack[THREAD_STACK_SIZE-SP_DELTA];
168
        context_set(&t->saved_context, FADDR(cushion), t->kstack, THREAD_STACK_SIZE);
170
 
169
 
171
        pri = cpu_priority_high();
170
        pri = cpu_priority_high();
172
        t->saved_context.pri = cpu_priority_read();
171
        t->saved_context.pri = cpu_priority_read();
173
        cpu_priority_restore(pri);
172
        cpu_priority_restore(pri);
174
       
173