Lines Matching refs:gdt0
100 user_desc_t *gdt0; variable
560 set_usegd(&gdt0[i], SDP_SHORT, NULL, -1, SDT_MEMRWA, in init_gdt_common()
587 ASSERT((sizeof (*gdt0) * NGDT) <= PAGESIZE); in init_gdt()
589 gdt0 = (user_desc_t *)BOP_ALLOC(bootops, (caddr_t)GDT_VA, in init_gdt()
591 bzero(gdt0, PAGESIZE); in init_gdt()
593 init_gdt_common(gdt0); in init_gdt()
601 set_usegd(&gdt0[GDT_B32DATA], SDP_LONG, NULL, -1, SDT_MEMRWA, in init_gdt()
603 set_usegd(&gdt0[GDT_B64CODE], SDP_LONG, NULL, -1, SDT_MEMERA, in init_gdt()
610 gdtpa = pfn_to_pa(va_to_pfn(gdt0)); in init_gdt()
612 kbm_read_only((uintptr_t)gdt0, gdtpa); in init_gdt()
642 return (gdt0); in init_gdt()
657 ASSERT((sizeof (*gdt0) * NGDT) <= PAGESIZE); in init_gdt()
659 gdt0 = (user_desc_t *)BOP_ALLOC(bootops, (caddr_t)GDT_VA, in init_gdt()
661 bzero(gdt0, PAGESIZE); in init_gdt()
663 init_gdt_common(gdt0); in init_gdt()
674 gdt0[GDT_B32DATA] = bgdt[GDT_B32DATA]; in init_gdt()
675 gdt0[GDT_B32CODE] = bgdt[GDT_B32CODE]; in init_gdt()
676 gdt0[GDT_B16CODE] = bgdt[GDT_B16CODE]; in init_gdt()
677 gdt0[GDT_B16DATA] = bgdt[GDT_B16DATA]; in init_gdt()
678 gdt0[GDT_B64CODE] = bgdt[GDT_B64CODE]; in init_gdt()
683 r_gdt.dtr_limit = (sizeof (*gdt0) * NGDT) - 1; in init_gdt()
684 r_gdt.dtr_base = (uintptr_t)gdt0; in init_gdt()
709 return (gdt0); in init_gdt()
787 set_usegd(&gdt0[i], NULL, (size_t)-1, SDT_MEMRWA, SEL_UPL, in init_gdt_common()
810 ASSERT((sizeof (*gdt0) * NGDT) <= PAGESIZE); in init_gdt()
812 gdt0 = (user_desc_t *)BOP_ALLOC(bootops, (caddr_t)GDT_VA, in init_gdt()
814 bzero(gdt0, PAGESIZE); in init_gdt()
816 init_gdt_common(gdt0); in init_gdt()
817 gdtpa = pfn_to_pa(va_to_pfn(gdt0)); in init_gdt()
825 set_usegd(&gdt0[GDT_B32DATA], NULL, -1, SDT_MEMRWA, SEL_KPL, in init_gdt()
827 set_usegd(&gdt0[GDT_B32CODE], NULL, -1, SDT_MEMERA, SEL_KPL, in init_gdt()
835 kbm_read_only((uintptr_t)gdt0, gdtpa); in init_gdt()
844 return (gdt0); in init_gdt()
859 ASSERT((sizeof (*gdt0) * NGDT) <= PAGESIZE); in init_gdt()
864 gdt0 = (user_desc_t *)BOP_ALLOC(bootops, (caddr_t)GDT_VA, in init_gdt()
866 bzero(gdt0, PAGESIZE); in init_gdt()
868 init_gdt_common(gdt0); in init_gdt()
879 gdt0[GDT_B32DATA] = bgdt[GDT_B32DATA]; in init_gdt()
880 gdt0[GDT_B32CODE] = bgdt[GDT_B32CODE]; in init_gdt()
881 gdt0[GDT_B16CODE] = bgdt[GDT_B16CODE]; in init_gdt()
882 gdt0[GDT_B16DATA] = bgdt[GDT_B16DATA]; in init_gdt()
887 r_gdt.dtr_limit = (sizeof (*gdt0) * NGDT) - 1; in init_gdt()
888 r_gdt.dtr_base = (uintptr_t)gdt0; in init_gdt()
897 return (gdt0); in init_gdt()