Home
last modified time | relevance | path

Searched refs:NGDT (Results 1 – 11 of 11) sorted by relevance

/freebsd/sys/i386/i386/
H A Dmp_machdep.c303 for (x = 0; x < NGDT; x++) { in init_secondary()
304 ssdtosd(&gdt_segs[x], &gdt[myid * NGDT + x].sd); in init_secondary()
307 r_gdt.rd_limit = NGDT * sizeof(gdt[0]) - 1; in init_secondary()
308 r_gdt.rd_base = (int) &gdt[myid * NGDT]; in init_secondary()
322 gdt[myid * NGDT + GPROC0_SEL].sd.sd_type = SDT_SYS386TSS; in init_secondary()
326 PCPU_SET(tss_gdt, &gdt[myid * NGDT + GPROC0_SEL].sd); in init_secondary()
330 PCPU_SET(fsgs_gdt, &gdt[myid * NGDT + GUFS_SEL].sd); in init_secondary()
H A Ddb_interface.c105 sdp = &gdt[PCPU_GET(cpuid) * NGDT].sd; in db_segsize()
H A Dmachdep.c343 union descriptor gdt0[NGDT]; /* initial global descriptor table */
1456 for (x = 0; x < NGDT; x++) in init386()
1459 r_gdt.rd_limit = NGDT * sizeof(gdt0[0]) - 1; in init386()
1619 gdt = pmap_trm_alloc(sizeof(union descriptor) * NGDT * mp_ncpus, in machdep_init_trampoline()
1621 bcopy(gdt0, gdt, sizeof(union descriptor) * NGDT); in machdep_init_trampoline()
1622 r_gdt.rd_limit = NGDT * sizeof(gdt[0]) - 1; in machdep_init_trampoline()
H A Dbios.c264 p_gdt = &gdt[PCPU_GET(cpuid) * NGDT]; in set_bios_selectors()
H A Dsys_machdep.c413 gdt_idx += PCPU_GET(cpuid) * NGDT; /* always 0 on UP */ in set_user_ldt_locked()
/freebsd/sys/x86/include/
H A Dsegments.h242 #define NGDT 19 macro
270 #define NGDT 13 macro
/freebsd/sys/amd64/include/
H A Dpcpu.h94 struct user_segment_descriptor pc_gdt[NGDT]; \
/freebsd/sys/amd64/amd64/
H A Dmp_machdep.c251 for (x = 0; x < NGDT; x++) { in init_secondary()
258 ap_gdt.rd_limit = NGDT * sizeof(gdt[0]) - 1; in init_secondary()
H A Dmachdep.c475 _Static_assert(nitems(gdt_segs) == NGDT, "Stale NGDT");
1383 for (x = 0; x < NGDT; x++) { in hammer_time()
1392 r_gdt.rd_limit = NGDT * sizeof(gdt[0]) - 1; in hammer_time()
H A Dpmap.c2046 memcpy(__pcpu[0].pc_gdt, temp_bsp_pcpu.pc_gdt, NGDT * in pmap_bootstrap()
2051 r_gdt.rd_limit = NGDT * sizeof(struct user_segment_descriptor) - 1; in pmap_bootstrap()
2189 r_gdt.rd_limit = NGDT * sizeof(struct user_segment_descriptor) - 1; in pmap_bootstrap_la57()
/freebsd/sys/cddl/contrib/opensolaris/uts/intel/dtrace/
H A Dfasttrap_isa.c850 if (ndx >= NGDT) in fasttrap_do_seg()