wc_cpu
wc_cpu_t *wc_cpu;
wc_cpu = wc_other_cpus + index;
if (wc_cpu->wc_saved_stack != NULL) {
kmem_free(wc_cpu->wc_saved_stack,
wc_cpu->wc_saved_stack_size);
i_cpr_save_stack(kthread_t *t, wc_cpu_t *wc_cpu)
if (wc_cpu->wc_saved_stack_size < stack_size) {
if (wc_cpu->wc_saved_stack != NULL) {
kmem_free(wc_cpu->wc_saved_stack,
wc_cpu->wc_saved_stack_size);
wc_cpu->wc_saved_stack = kmem_zalloc(stack_size, KM_SLEEP);
wc_cpu->wc_saved_stack_size = stack_size;
bcopy(start, wc_cpu->wc_saved_stack, stack_size);
wc_cpu_t *wc_cpu = wc_other_cpus + index;
papic_state = &(wc_cpu)->wc_apic_state;
i_cpr_save_stack(curthread, wc_cpu);
resuming = (wc_save_context(wc_cpu) == 0);
bcopy(cpup, &(wp->wc_cpu), sizeof (wc_cpu_t));
wc_cpu_t *cpup = &(wp->wc_cpu);
static void i_cpr_save_stack(kthread_t *t, wc_cpu_t *wc_cpu);
wc_cpu_t wc_cpu;