Subversion Repositories HelenOS-historic

Rev

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

Rev 76 Rev 81
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-8];
235
    CPU->saved_context.sp = (__address) &CPU->stack[CPU_STACK_SIZE-SP_DELTA];
236
    CPU->saved_context.pc = FADDR(scheduler_separated_stack);
236
    CPU->saved_context.pc = FADDR(scheduler_separated_stack);
237
    context_restore(&CPU->saved_context);
237
    context_restore(&CPU->saved_context);
238
    /* not reached */
238
    /* not reached */
239
}
239
}
240
 
240