Home
last modified time | relevance | path

Searched refs:tls (Results 1 – 26 of 26) sorted by relevance

/linux-4.4.14/arch/x86/um/
Dtls_32.c107 clear_user_desc(&curr->tls); in load_TLS()
108 curr->tls.entry_number = idx; in load_TLS()
110 WARN_ON(!LDT_empty(&curr->tls)); in load_TLS()
118 ret = do_set_thread_area(&curr->tls); in load_TLS()
211 t->arch.tls_array[idx - GDT_ENTRY_TLS_MIN].tls = *info; in set_tls_entry()
254 *info = t->arch.tls_array[idx - GDT_ENTRY_TLS_MIN].tls; in get_tls_entry()
/linux-4.4.14/arch/x86/kernel/
Dtls.c214 const struct desc_struct *tls; in regset_tls_get() local
224 tls = &target->thread.tls_array[pos]; in regset_tls_get()
230 tls++); in regset_tls_get()
235 fill_user_desc(&info, GDT_ENTRY_TLS_MIN + pos++, tls++); in regset_tls_get()
Dprocess_64.c137 static inline void set_32bit_tls(struct task_struct *t, int tls, u32 addr) in set_32bit_tls() argument
147 desc += tls; in set_32bit_tls()
151 static inline u32 read_32bit_tls(struct task_struct *t, int tls) in read_32bit_tls() argument
153 return get_desc_base(&t->thread.tls_array[tls]); in read_32bit_tls()
157 unsigned long arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
213 (struct user_desc __user *)tls, 0); in copy_thread_tls()
216 err = do_arch_prctl(p, ARCH_SET_FS, tls); in copy_thread_tls()
DMakefile48 obj-$(CONFIG_X86_32) += tls.o
49 obj-$(CONFIG_IA32_EMULATION) += tls.o
Dprocess_32.c133 unsigned long arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
188 (struct user_desc __user *)tls, 0); in copy_thread_tls()
/linux-4.4.14/drivers/lguest/
Dsegments.c212 struct desc_struct *tls = &cpu->arch.gdt[GDT_ENTRY_TLS_MIN]; in guest_load_tls() local
214 __lgread(cpu, tls, gtls, sizeof(*tls)*GDT_ENTRY_TLS_ENTRIES); in guest_load_tls()
/linux-4.4.14/arch/s390/kernel/
Dprocess.c178 unsigned long tls = frame->childregs.gprs[6]; in copy_thread() local
180 p->thread.acrs[0] = (unsigned int)tls; in copy_thread()
182 p->thread.acrs[0] = (unsigned int)(tls >> 32); in copy_thread()
183 p->thread.acrs[1] = (unsigned int)tls; in copy_thread()
Dcompat_wrapper.c158 …ed long, clone_flags, int __user *, parent_tidptr, int __user *, child_tidptr, unsigned long, tls);
/linux-4.4.14/arch/metag/kernel/
Dptrace.c296 void __user *tls = target->thread.tls_ptr; in metag_tls_get() local
297 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in metag_tls_get()
306 void __user *tls; in metag_tls_set() local
308 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in metag_tls_set()
312 target->thread.tls_ptr = tls; in metag_tls_set()
/linux-4.4.14/arch/arm64/kernel/
Dptrace.c542 unsigned long *tls = &target->thread.tp_value; in tls_get() local
543 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, tls, 0, -1); in tls_get()
551 unsigned long tls; in tls_set() local
553 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in tls_set()
557 target->thread.tp_value = tls; in tls_set()
839 compat_ulong_t tls = (compat_ulong_t)target->thread.tp_value; in compat_tls_get() local
840 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in compat_tls_get()
849 compat_ulong_t tls; in compat_tls_set() local
851 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in compat_tls_set()
855 target->thread.tp_value = tls; in compat_tls_set()
/linux-4.4.14/arch/openrisc/include/asm/
Dsyscalls.h28 void __user *parent_tid, void __user *child_tid, int tls);
/linux-4.4.14/arch/x86/um/os-Linux/
DMakefile8 obj-$(CONFIG_X86_32) += tls.o
/linux-4.4.14/sound/soc/fsl/
Dfsl_ssi_dbg.c67 dbg->stats.tls++; in fsl_ssi_dbg_isr()
121 SIER_SHOW(TLS_EN, tls); in fsl_ssi_stats_show()
Dfsl_ssi.h233 unsigned int tls; member
/linux-4.4.14/arch/cris/include/asm/
Dthread_info.h34 __u32 tls; /* TLS for this thread */ member
/linux-4.4.14/arch/x86/um/asm/
Dprocessor_32.h16 struct user_desc tls; member
/linux-4.4.14/Documentation/zh_CN/arm/
Dkernel_user_helpers.txt120 void *tls = __kuser_get_tls();
121 printf("TLS = %p\n", tls);
/linux-4.4.14/kernel/
Dfork.c1249 unsigned long tls) in copy_process() argument
1456 retval = copy_thread_tls(clone_flags, stack_start, stack_size, p, tls); in copy_process()
1698 unsigned long tls) in _do_fork() argument
1723 child_tidptr, NULL, trace, tls); in _do_fork()
1811 unsigned long, tls, in SYSCALL_DEFINE5() argument
1817 unsigned long, tls) in SYSCALL_DEFINE5()
1823 unsigned long, tls) in SYSCALL_DEFINE5()
1828 unsigned long, tls) in SYSCALL_DEFINE5()
1831 return _do_fork(clone_flags, newsp, 0, parent_tidptr, child_tidptr, tls); in SYSCALL_DEFINE5()
/linux-4.4.14/arch/cris/arch-v32/kernel/
Dprocess.c134 task_thread_info(p)->tls = childregs->mof; in copy_thread()
/linux-4.4.14/arch/cris/arch-v32/mm/
Dtlb.c201 task_thread_info(tsk)->tls); in switch_mm()
/linux-4.4.14/Documentation/arm/
Dkernel_user_helpers.txt107 void *tls = __kuser_get_tls();
108 printf("TLS = %p\n", tls);
/linux-4.4.14/include/linux/
Dpe.h224 struct data_dirent tls; /* .tls */ member
Dsched.h2609 struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
/linux-4.4.14/arch/mips/kernel/
Dtraps.c358 unsigned long tls; in show_registers() local
360 tls = read_c0_userlocal(); in show_registers()
361 if (tls != current_thread_info()->tp_value) in show_registers()
362 printk("*HwTLS: %0*lx\n", field, tls); in show_registers()
/linux-4.4.14/arch/
DKconfig517 Architecture provides copy_thread_tls to accept tls argument via
527 Architecture has tls passed as the 4th argument of clone(2),
538 Architecture has tls passed as the 3rd argument of clone(2),
/linux-4.4.14/arch/mips/include/asm/octeon/
Dcvmx-pciercx-defs.h1509 uint32_t tls:4; member
1511 uint32_t tls:4;