Lines Matching defs:cdi
418 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
448 cdi->cdi_idt.ptr = master_idt;
449 cdi->cdi_gdt.ptr = (void *)master_gdt;
459 cdi->cdi_ktss = (struct i386_tss *)
461 cdi->cdi_sstk = (vm_offset_t) (cdi->cdi_ktss + 1) +
482 cdi->cdi_gdt.ptr = (struct fake_descriptor *) (cpu_hi_desc +
484 cdi->cdi_idt.ptr = (struct fake_descriptor *) (cpu_hi_desc +
486 cdi->cdi_ktss = (struct i386_tss *) (cpu_hi_desc +
488 cdi->cdi_sstk = cpu_hi_desc + offsetof(cpu_desc_table_t, sstk.top);
493 cdi->cdi_ldt = (struct fake_descriptor *)
513 temp_ldt.offset = (vm_offset_t)cdi->cdi_ldt;
520 cdt->gdt[sel_idx(KERNEL_TSS)].offset = (vm_offset_t) cdi->cdi_ktss;
540 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
547 cdi->cdi_ktss = (void *)&master_ktss64;
548 cdi->cdi_sstk = (vm_offset_t) &master_sstk.top;
550 cdi->cdi_gdt.ptr = (void *)MASTER_GDT_ALIAS;
551 cdi->cdi_idt.ptr = (void *)MASTER_IDT_ALIAS;
553 cdi->cdi_gdt.ptr = (void *)master_gdt;
554 cdi->cdi_idt.ptr = (void *)master_idt64;
556 cdi->cdi_ldt = (struct fake_descriptor *) master_ldt;
591 cdi->cdi_idt.ptr = (void *)MASTER_IDT_ALIAS;
593 cdi->cdi_idt.ptr = (void *)cdt->idt;
595 cdi->cdi_gdt.ptr = (struct fake_descriptor *)cdt->gdt;
596 cdi->cdi_ktss = (void *)&cdt->ktss;
597 cdi->cdi_sstk = (vm_offset_t)&cdt->sstk.top;
598 cdi->cdi_ldt = cdp->cpu_ldtp;
614 kernel_ldt_desc64.offset64 = UBER64(cdi->cdi_ldt);
619 kernel_ldt_desc64.offset64 = UBER64(cdi->cdi_ldt);
624 kernel_tss_desc64.offset64 = UBER64(cdi->cdi_ktss);
644 if ((cdi->cdi_sstk % 16) != 0)
652 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
654 cdi->cdi_idt.size = 0x1000 + cdp->cpu_number;
655 cdi->cdi_gdt.size = sizeof(struct real_descriptor)*GDTSZ - 1;
657 lgdt((uintptr_t *) &cdi->cdi_gdt);
658 lidt((uintptr_t *) &cdi->cdi_idt);
670 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
684 gdtptr64.offset[0] = (uint32_t) cdi->cdi_gdt.ptr;
687 idtptr64.offset[0] = (uint32_t) cdi->cdi_idt.ptr;
696 cdi->cdi_gdt.size = sizeof(struct real_descriptor)*GDTSZ - 1;
697 cdi->cdi_idt.size = 0x1000 + cdp->cpu_number;
698 lgdt((uintptr_t *) &cdi->cdi_gdt);
699 lidt((uintptr_t *) &cdi->cdi_idt);
1009 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
1010 cdi->cdi_gdt.ptr[sel_idx(USER_WINDOW_SEL)] = userwindow_desc_pattern;
1011 cdi->cdi_gdt.ptr[sel_idx(USER_WINDOW_SEL)].offset = user_window;
1013 fix_desc(&cdi->cdi_gdt.ptr[sel_idx(USER_WINDOW_SEL)], 1);
1041 cpu_desc_index_t *cdi = &cdp->cpu_desc_index;
1042 cdi->cdi_gdt.ptr[sel_idx(PHYS_WINDOW_SEL)] = physwindow_desc_pattern;
1043 cdi->cdi_gdt.ptr[sel_idx(PHYS_WINDOW_SEL)].offset = phys_window;
1045 fix_desc(&cdi->cdi_gdt.ptr[sel_idx(PHYS_WINDOW_SEL)], 1);