Lines Matching refs:gsindex
63 unsigned int fsindex, gsindex; in __show_regs() local
85 asm("movl %%gs,%0" : "=r" (gsindex)); in __show_regs()
100 fs, fsindex, gs, gsindex, shadowgs); in __show_regs()
168 savesegment(gs, p->thread.gsindex); in copy_thread()
169 p->thread.gs = p->thread.gsindex ? 0 : me->thread.gs; in copy_thread()
280 unsigned fsindex, gsindex; in __switch_to() local
291 savesegment(gs, gsindex); in __switch_to()
384 if (unlikely(gsindex | next->gsindex | prev->gs)) { in __switch_to()
385 load_gs_index(next->gsindex); in __switch_to()
388 if (gsindex) in __switch_to()
393 prev->gsindex = gsindex; in __switch_to()
589 task->thread.gsindex = GS_TLS_SEL; in do_arch_prctl()
592 task->thread.gsindex = 0; in do_arch_prctl()
642 unsigned gsindex; in do_arch_prctl() local
643 if (task->thread.gsindex == GS_TLS_SEL) in do_arch_prctl()
646 savesegment(gs, gsindex); in do_arch_prctl()
647 if (gsindex) in do_arch_prctl()