Lines Matching refs:sel
89 # define __i386_set_gdt(thr, sel, desc) ((void) (thr), (void) (sel), (void) (desc), MIG_BAD_ID) argument
108 # define HURD_SEL_LDT(sel) (__builtin_expect ((sel) & 4, 0)) argument
124 int sel = -1; in _hurd_tls_init() local
125 error_t err = __i386_set_gdt (self, &sel, desc); in _hurd_tls_init()
129 sel = 0x27; in _hurd_tls_init()
130 err = __i386_set_ldt (self, sel, &desc, 1); in _hurd_tls_init()
146 asm volatile ("mov %w0, %%gs" :: "q" (sel)); in _hurd_tls_init()
321 int sel; in _hurd_tls_fork() local
322 asm ("mov %%gs, %w0" : "=q" (sel) : "0" (0)); in _hurd_tls_fork()
323 if (sel == state->ds) /* _hurd_tls_init was never called. */ in _hurd_tls_fork()
330 if (HURD_SEL_LDT (sel)) in _hurd_tls_fork()
331 err = __i386_get_ldt (orig, sel, 1, &_desc, &count); in _hurd_tls_fork()
333 err = __i386_get_gdt (orig, sel, &desc); in _hurd_tls_fork()
339 if (HURD_SEL_LDT (sel)) in _hurd_tls_fork()
340 err = __i386_set_ldt (child, sel, &desc, 1); in _hurd_tls_fork()
342 err = __i386_set_gdt (child, &sel, desc); in _hurd_tls_fork()
344 state->gs = sel; in _hurd_tls_fork()
352 int sel; in _hurd_tls_new() local
353 asm ("mov %%gs, %w0" : "=q" (sel) : "0" (0)); in _hurd_tls_new()
354 if (sel == state->ds) /* _hurd_tls_init was never called. */ in _hurd_tls_new()
363 if (HURD_SEL_LDT (sel)) in _hurd_tls_new()
364 err = __i386_set_ldt (child, sel, &desc, 1); in _hurd_tls_new()
366 err = __i386_set_gdt (child, &sel, desc); in _hurd_tls_new()
368 state->gs = sel; in _hurd_tls_new()