Lines Matching refs:gdt
239 offsetof(cpu_desc_table_t, gdt[0]));
264 (char *)cdt->gdt,
284 cdt->gdt[sel_idx(KERNEL_LDT)] = ldt_desc_pattern;
285 cdt->gdt[sel_idx(KERNEL_LDT)].offset = (vm_offset_t) cdi->cdi_ldt;
286 fix_desc(&cdt->gdt[sel_idx(KERNEL_LDT)], 1);
288 cdt->gdt[sel_idx(USER_LDT)] = ldt_desc_pattern;
289 cdt->gdt[sel_idx(USER_LDT)].offset = (vm_offset_t) cdi->cdi_ldt;
290 fix_desc(&cdt->gdt[sel_idx(USER_LDT)], 1);
292 cdt->gdt[sel_idx(KERNEL_TSS)] = tss_desc_pattern;
293 cdt->gdt[sel_idx(KERNEL_TSS)].offset = (vm_offset_t) cdi->cdi_ktss;
294 fix_desc(&cdt->gdt[sel_idx(KERNEL_TSS)], 1);
296 cdt->gdt[sel_idx(CPU_DATA_GS)] = cpudata_desc_pattern;
297 cdt->gdt[sel_idx(CPU_DATA_GS)].offset = (vm_offset_t) cdp;
298 fix_desc(&cdt->gdt[sel_idx(CPU_DATA_GS)], 1);
301 cdt->gdt[sel_idx(DEBUG_TSS)] = tss_desc_pattern;
302 cdt->gdt[sel_idx(DEBUG_TSS)].offset = (vm_offset_t) cdi->cdi_dbtss;
303 fix_desc(&cdt->gdt[sel_idx(DEBUG_TSS)], 1);
368 cdi->cdi_gdt = (struct fake_descriptor *)cdt->gdt;
381 (char *)cdt->gdt,
395 *(struct fake_descriptor64 *) &cdt->gdt[sel_idx(KERNEL_LDT)] =
397 fix_desc64(&cdt->gdt[sel_idx(KERNEL_LDT)], 1);
400 *(struct fake_descriptor64 *) &cdt->gdt[sel_idx(USER_LDT)] =
402 fix_desc64(&cdt->gdt[sel_idx(USER_LDT)], 1);
405 *(struct fake_descriptor64 *) &cdt->gdt[sel_idx(KERNEL_TSS)] =
407 fix_desc64(&cdt->gdt[sel_idx(KERNEL_TSS)], 1);
409 cdt->gdt[sel_idx(CPU_DATA_GS)] = cpudata_desc_pattern;
410 cdt->gdt[sel_idx(CPU_DATA_GS)].offset = (vm_offset_t) cdp;
411 fix_desc(&cdt->gdt[sel_idx(CPU_DATA_GS)], 1);