Rev 413 | Rev 430 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 413 | Rev 414 | ||
---|---|---|---|
Line 244... | Line 244... | ||
244 | /* |
244 | /* |
245 | * If we woke kmp up before we left the kernel stack, we could |
245 | * If we woke kmp up before we left the kernel stack, we could |
246 | * collide with another CPU coming up. To prevent this, we |
246 | * collide with another CPU coming up. To prevent this, we |
247 | * switch to this cpu's private stack prior to waking kmp up. |
247 | * switch to this cpu's private stack prior to waking kmp up. |
248 | */ |
248 | */ |
249 | context_set(&CPU->saved_context, FADDR(main_ap_separated_stack), CPU->stack, CPU_STACK_SIZE); |
249 | context_set(&CPU->saved_context, FADDR(main_ap_separated_stack), (__address) CPU->stack, CPU_STACK_SIZE); |
250 | context_restore(&CPU->saved_context); |
250 | context_restore(&CPU->saved_context); |
251 | /* not reached */ |
251 | /* not reached */ |
252 | } |
252 | } |
253 | 253 | ||
254 | 254 |