Subversion Repositories HelenOS

Rev

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

Rev 3197 Rev 3588
Line 326... Line 326...
326
    /*
326
    /*
327
     * If we woke kmp up before we left the kernel stack, we could
327
     * If we woke kmp up before we left the kernel stack, we could
328
     * collide with another CPU coming up. To prevent this, we
328
     * collide with another CPU coming up. To prevent this, we
329
     * switch to this cpu's private stack prior to waking kmp up.
329
     * switch to this cpu's private stack prior to waking kmp up.
330
     */
330
     */
-
 
331
    context_save(&CPU->saved_context);
331
    context_set(&CPU->saved_context, FADDR(main_ap_separated_stack),
332
    context_set(&CPU->saved_context, FADDR(main_ap_separated_stack),
332
        (uintptr_t) CPU->stack, CPU_STACK_SIZE);
333
        (uintptr_t) CPU->stack, CPU_STACK_SIZE);
333
    context_restore(&CPU->saved_context);
334
    context_restore(&CPU->saved_context);
334
    /* not reached */
335
    /* not reached */
335
}
336
}