Searched refs:NGDT (Results 1 – 11 of 11) sorted by relevance
303 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()
105 sdp = &gdt[PCPU_GET(cpuid) * NGDT].sd; in db_segsize()
343 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()
264 p_gdt = &gdt[PCPU_GET(cpuid) * NGDT]; in set_bios_selectors()
413 gdt_idx += PCPU_GET(cpuid) * NGDT; /* always 0 on UP */ in set_user_ldt_locked()
242 #define NGDT 19 macro270 #define NGDT 13 macro
94 struct user_segment_descriptor pc_gdt[NGDT]; \
251 for (x = 0; x < NGDT; x++) { in init_secondary()258 ap_gdt.rd_limit = NGDT * sizeof(gdt[0]) - 1; in init_secondary()
475 _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()
2046 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()
850 if (ndx >= NGDT) in fasttrap_do_seg()