Lines Matching refs:gsindex
62 unsigned int fsindex, gsindex; in __show_regs() local
84 asm("movl %%gs,%0" : "=r" (gsindex)); in __show_regs()
99 fs, fsindex, gs, gsindex, shadowgs); in __show_regs()
169 savesegment(gs, p->thread.gsindex); in copy_thread_tls()
170 p->thread.gs = p->thread.gsindex ? 0 : me->thread.gs; in copy_thread_tls()
283 unsigned fsindex, gsindex; in __switch_to() local
294 savesegment(gs, gsindex); in __switch_to()
387 if (unlikely(gsindex | next->gsindex | prev->gs)) { in __switch_to()
388 load_gs_index(next->gsindex); in __switch_to()
391 if (gsindex) in __switch_to()
396 prev->gsindex = gsindex; in __switch_to()
525 task->thread.gsindex = GS_TLS_SEL; in do_arch_prctl()
528 task->thread.gsindex = 0; in do_arch_prctl()
578 unsigned gsindex; in do_arch_prctl() local
579 if (task->thread.gsindex == GS_TLS_SEL) in do_arch_prctl()
582 savesegment(gs, gsindex); in do_arch_prctl()
583 if (gsindex) in do_arch_prctl()