Lines Matching refs:cdt
465 cpu_desc_table_t *cdt = (cpu_desc_table_t *) cdp->cpu_desc_tablep;
472 (vm_offset_t) cdt, 1);
503 bcopy((char *)master_idt, (char *)cdt->idt, sizeof(master_idt));
504 bcopy((char *)master_gdt, (char *)cdt->gdt, sizeof(master_gdt));
506 bzero((char *)&cdt->ktss, sizeof(struct i386_tss));
516 cdt->gdt[sel_idx(KERNEL_LDT)] = temp_ldt;
517 cdt->gdt[sel_idx(USER_LDT)] = temp_ldt;
519 cdt->gdt[sel_idx(KERNEL_TSS)] = tss_desc_pattern;
520 cdt->gdt[sel_idx(KERNEL_TSS)].offset = (vm_offset_t) cdi->cdi_ktss;
521 fix_desc(&cdt->gdt[sel_idx(KERNEL_TSS)], 1);
523 cdt->gdt[sel_idx(CPU_DATA_GS)] = cpudata_desc_pattern;
524 cdt->gdt[sel_idx(CPU_DATA_GS)].offset = (vm_offset_t) cdp;
525 fix_desc(&cdt->gdt[sel_idx(CPU_DATA_GS)], 1);
527 cdt->ktss.ss0 = KERNEL_DS;
528 cdt->ktss.io_bit_map_offset = 0x0FFF; /* no IO bitmap */
584 cpu_desc_table64_t *cdt = (cpu_desc_table64_t *) cdp->cpu_desc_tablep;
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;
604 bcopy((char *)master_idt64, (char *)cdt->idt, sizeof(master_idt64));
606 bcopy((char *)master_gdt, (char *)cdt->gdt, sizeof(master_gdt));
608 bcopy((char *)&master_ktss64, (char *)&cdt->ktss, sizeof(struct x86_64_tss));
615 *(struct fake_descriptor64 *) &cdt->gdt[sel_idx(KERNEL_LDT)] =
617 fix_desc64(&cdt->gdt[sel_idx(KERNEL_LDT)], 1);
620 *(struct fake_descriptor64 *) &cdt->gdt[sel_idx(USER_LDT)] =
622 fix_desc64(&cdt->gdt[sel_idx(USER_LDT)], 1);
625 *(struct fake_descriptor64 *) &cdt->gdt[sel_idx(KERNEL_TSS)] =
627 fix_desc64(&cdt->gdt[sel_idx(KERNEL_TSS)], 1);
630 bzero((void *) cdt->dfstk, sizeof(cdt->dfstk));
631 cdt->ktss.ist1 = UBER64((unsigned long)cdt->dfstk + sizeof(cdt->dfstk));
633 cdt->gdt[sel_idx(CPU_DATA_GS)] = cpudata_desc_pattern;
634 cdt->gdt[sel_idx(CPU_DATA_GS)].offset = (vm_offset_t) cdp;
635 fix_desc(&cdt->gdt[sel_idx(CPU_DATA_GS)], 1);