Rev 3582 | Rev 3607 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3582 | Rev 3593 | ||
---|---|---|---|
Line 327... | Line 327... | ||
327 | /* |
327 | /* |
328 | * If we woke kmp up before we left the kernel stack, we could |
328 | * If we woke kmp up before we left the kernel stack, we could |
329 | * collide with another CPU coming up. To prevent this, we |
329 | * collide with another CPU coming up. To prevent this, we |
330 | * switch to this cpu's private stack prior to waking kmp up. |
330 | * switch to this cpu's private stack prior to waking kmp up. |
331 | */ |
331 | */ |
- | 332 | context_save(&CPU->saved_context); |
|
332 | context_set(&CPU->saved_context, FADDR(main_ap_separated_stack), |
333 | context_set(&CPU->saved_context, FADDR(main_ap_separated_stack), |
333 | (uintptr_t) CPU->stack, CPU_STACK_SIZE); |
334 | (uintptr_t) CPU->stack, CPU_STACK_SIZE); |
334 | context_restore(&CPU->saved_context); |
335 | context_restore(&CPU->saved_context); |
335 | /* not reached */ |
336 | /* not reached */ |
336 | } |
337 | } |