Lines Matching refs:cdp
193 cpu_data_t *cdp,
196 cpu_desc_table_t *cdt = cdp->cpu_desc_tablep;
197 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
226 cpu_hi_desc = pmap_cpu_high_shared_remap(cdp->cpu_number,
252 cdp->cpu_number,
254 (vm_offset_t) cdp->cpu_ldtp,
267 (char *)cdp->cpu_ldtp,
297 cdt->gdt[sel_idx(CPU_DATA_GS)].offset = (vm_offset_t) cdp;
306 (INTSTACK_SIZE * (cdp->cpu_number)) - sizeof (natural_t));
314 cpu_userwindow_init(cdp->cpu_number);
315 cpu_physwindow_init(cdp->cpu_number);
323 cpu_data_t *cdp,
327 cdp->cpu_desc_tablep;
328 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
372 cdi->cdi_ldt = cdp->cpu_ldtp;
384 (char *)cdp->cpu_ldtp,
410 cdt->gdt[sel_idx(CPU_DATA_GS)].offset = (vm_offset_t) cdp;
420 cpu_userwindow_init(cdp->cpu_number);
421 cpu_physwindow_init(cdp->cpu_number);
487 cpu_data_t *cdp;
491 cdp = &cpu_data_master;
492 if (cdp->cpu_processor == NULL) {
494 cdp->cpu_processor = cpu_processor_alloc(TRUE);
495 cdp->cpu_pmap = pmap_cpu_alloc(TRUE);
496 cpu_desc_init(cdp, TRUE);
498 queue_init(&cdp->rtclock_timer.queue);
499 cdp->rtclock_timer.deadline = EndOfAllTime;
501 return cdp;
512 (vm_offset_t *) &cdp, sizeof(cpu_data_t));
517 bzero((void*) cdp, sizeof(cpu_data_t));
518 cdp->cpu_this = cdp;
521 cdp->cpu_is64bit = cpu_mode_is64bit();
527 (vm_offset_t *) &cdp->cpu_int_stack_top,
533 bzero((void*) cdp->cpu_int_stack_top, INTSTACK_SIZE);
534 cdp->cpu_int_stack_top += INTSTACK_SIZE;
541 (vm_offset_t *) &cdp->cpu_desc_tablep,
542 cdp->cpu_is64bit ? sizeof(cpu_desc_table64_t)
553 (vm_offset_t *) &cdp->cpu_ldtp,
561 mca_cpu_alloc(cdp);
568 cpu_data_ptr[real_ncpus] = cdp;
569 cdp->cpu_number = real_ncpus;
573 cdp->cpu_nanotime = &rtc_nanotime_info;
574 queue_init(&cdp->rtclock_timer.queue);
575 cdp->rtclock_timer.deadline = EndOfAllTime;
580 cdp->cpu_number, cdp, cdp->cpu_desc_tablep, cdp->cpu_ldtp,
581 cdp->cpu_int_stack_top - INTSTACK_SIZE, cdp->cpu_int_stack_top);
583 return cdp;
586 if (cdp) {
587 if (cdp->cpu_desc_tablep)
588 kfree((void *) cdp->cpu_desc_tablep,
589 sizeof(*cdp->cpu_desc_tablep));
590 if (cdp->cpu_int_stack_top)
591 kfree((void *) (cdp->cpu_int_stack_top - INTSTACK_SIZE),
593 kfree((void *) cdp, sizeof(*cdp));
620 cpu_data_t *cdp = cpu_data_ptr[cpu];
621 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
665 cdp->cpu_copywindow_base = user_window;
666 cdp->cpu_copywindow_pdp = pmap_pde(kernel_pmap, user_window);
678 cpu_data_t *cdp = cpu_data_ptr[cpu];
679 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
680 vm_offset_t phys_window = cdp->cpu_physwindow_base;
696 cdp->cpu_physwindow_base = phys_window;
697 cdp->cpu_physwindow_ptep = vtopte(phys_window);
718 cpu_desc_load64(cpu_data_t *cdp)
720 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
748 cpu_mode_init(cpu_data_t *cdp)
751 cpu_IA32e_enable(cdp);
752 cpu_desc_load64(cdp);