HelenOS sources

GDT_SELECTOR      107 kernel/arch/amd64/src/ddi/ddi.c 	tr_load(GDT_SELECTOR(TSS_DES));
GDT_SELECTOR      173 kernel/arch/amd64/src/pm.c 		d->selector = GDT_SELECTOR(KTEXT_DES);
GDT_SELECTOR      298 kernel/arch/amd64/src/pm.c 	tr_load(GDT_SELECTOR(TSS_DES));
GDT_SELECTOR       58 kernel/arch/amd64/src/syscall.c 	    ((uint64_t) (GDT_SELECTOR(KDATA_DES) | PL_USER) << 48) |
GDT_SELECTOR       59 kernel/arch/amd64/src/syscall.c 	    ((uint64_t) (GDT_SELECTOR(KTEXT_DES) | PL_KERNEL) << 32));
GDT_SELECTOR       70 kernel/arch/amd64/src/userspace.c 	    :: [udata_des] "i" (GDT_SELECTOR(UDATA_DES) | PL_USER),
GDT_SELECTOR       73 kernel/arch/amd64/src/userspace.c 	      [utext_des] "i" (GDT_SELECTOR(UTEXT_DES) | PL_USER),
GDT_SELECTOR      106 kernel/arch/ia32/src/ddi/ddi.c 	tr_load(GDT_SELECTOR(TSS_DES));
GDT_SELECTOR      173 kernel/arch/ia32/src/pm.c 		d->selector = GDT_SELECTOR(KTEXT_DES);
GDT_SELECTOR      303 kernel/arch/ia32/src/pm.c 	tr_load(GDT_SELECTOR(TSS_DES));
GDT_SELECTOR       71 kernel/arch/ia32/src/proc/scheduler.c 	CPU->arch.tss->ss0 = GDT_SELECTOR(KDATA_DES);
GDT_SELECTOR       49 kernel/arch/ia32/src/syscall.c 	write_msr(IA32_MSR_SYSENTER_CS, GDT_SELECTOR(KTEXT_DES));
GDT_SELECTOR       74 kernel/arch/ia32/src/userspace.c 	      [udata_des] "i" (GDT_SELECTOR(UDATA_DES) | PL_USER),
GDT_SELECTOR       77 kernel/arch/ia32/src/userspace.c 	      [utext_des] "i" (GDT_SELECTOR(UTEXT_DES) | PL_USER),
GDT_SELECTOR       79 kernel/arch/ia32/src/userspace.c 	      [vreg_des] "r" (GDT_SELECTOR(VREG_DES))
GDT_SELECTOR       73 kernel/arch/ia32/src/vreg.c 	gs_load(GDT_SELECTOR(VREG_DES));
HelenOS homepage, sources at GitHub