Subversion Repositories HelenOS

Rev

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

Rev 81 Rev 97
Line 230... Line 230...
230
     * which is fooled by SP being set to the very top of the stack.
230
     * which is fooled by SP being set to the very top of the stack.
231
     * Therefore the scheduler() function continues in
231
     * Therefore the scheduler() function continues in
232
     * scheduler_separated_stack().
232
     * scheduler_separated_stack().
233
     */
233
     */
234
    context_save(&CPU->saved_context);
234
    context_save(&CPU->saved_context);
235
    CPU->saved_context.sp = (__address) &CPU->stack[CPU_STACK_SIZE-SP_DELTA];
-
 
236
    CPU->saved_context.pc = FADDR(scheduler_separated_stack);
235
    context_set(&CPU->saved_context, FADDR(scheduler_separated_stack), CPU->stack, CPU_STACK_SIZE);
237
    context_restore(&CPU->saved_context);
236
    context_restore(&CPU->saved_context);
238
    /* not reached */
237
    /* not reached */
239
}
238
}
240
 
239
 
241
void scheduler_separated_stack(void)
240
void scheduler_separated_stack(void)