Subversion Repositories HelenOS-historic

Rev

Rev 1757 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1757 Rev 1780
Line 347... Line 347...
347
     * which is fooled by SP being set to the very top of the stack.
347
     * which is fooled by SP being set to the very top of the stack.
348
     * Therefore the scheduler() function continues in
348
     * Therefore the scheduler() function continues in
349
     * scheduler_separated_stack().
349
     * scheduler_separated_stack().
350
     */
350
     */
351
    context_save(&CPU->saved_context);
351
    context_save(&CPU->saved_context);
352
    context_set(&CPU->saved_context, FADDR(scheduler_separated_stack), (__address) CPU->stack, CPU_STACK_SIZE);
352
    context_set(&CPU->saved_context, FADDR(scheduler_separated_stack), (uintptr_t) CPU->stack, CPU_STACK_SIZE);
353
    context_restore(&CPU->saved_context);
353
    context_restore(&CPU->saved_context);
354
    /* not reached */
354
    /* not reached */
355
}
355
}
356
 
356
 
357
/** Scheduler stack switch wrapper
357
/** Scheduler stack switch wrapper