Home
last modified time | relevance | path

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

12

/arch/x86/um/
Dtls_64.c9 int arch_set_tls(struct task_struct *t, unsigned long tls) in arch_set_tls() argument
15 t->thread.arch.fs = tls; in arch_set_tls()
Dtls_32.c104 clear_user_desc(&curr->tls); in load_TLS()
105 curr->tls.entry_number = idx; in load_TLS()
107 WARN_ON(!LDT_empty(&curr->tls)); in load_TLS()
115 ret = do_set_thread_area(&curr->tls); in load_TLS()
208 t->arch.tls_array[idx - GDT_ENTRY_TLS_MIN].tls = *info; in set_tls_entry()
215 int arch_set_tls(struct task_struct *new, unsigned long tls) in arch_set_tls() argument
220 if (copy_from_user(&info, (void __user *) tls, sizeof(info))) in arch_set_tls()
246 *info = t->arch.tls_array[idx - GDT_ENTRY_TLS_MIN].tls; in get_tls_entry()
/arch/csky/kernel/
Dprocess.c41 unsigned long tls) in copy_thread_tls() argument
67 task_thread_info(p)->tp_value = childregs->tls in copy_thread_tls()
68 = tls; in copy_thread_tls()
Dsyscall.c11 reg->tls = addr; in SYSCALL_DEFINE1()
Dptrace.c82 regs->tls = task_thread_info(target)->tp_value; in gpr_get()
104 task_thread_info(target)->tp_value = regs.tls; in gpr_set()
284 fp->exregs[12], fp->exregs[13], fp->exregs[14], fp->tls); in show_regs()
/arch/s390/kernel/
Dprocess.c95 unsigned long arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
157 p->thread.acrs[0] = (unsigned int)tls; in copy_thread_tls()
159 p->thread.acrs[0] = (unsigned int)(tls >> 32); in copy_thread_tls()
160 p->thread.acrs[1] = (unsigned int)tls; in copy_thread_tls()
/arch/x86/kernel/
Dtls.c262 const struct desc_struct *tls; in regset_tls_get() local
272 tls = &target->thread.tls_array[pos]; in regset_tls_get()
278 tls++); in regset_tls_get()
283 fill_user_desc(&info, GDT_ENTRY_TLS_MIN + pos++, tls++); in regset_tls_get()
Dprocess_32.c116 unsigned long arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
174 (struct user_desc __user *)tls, 0); in copy_thread_tls()
DMakefile70 obj-$(CONFIG_X86_32) += tls.o
71 obj-$(CONFIG_IA32_EMULATION) += tls.o
Dprocess_64.c375 unsigned long arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
432 (struct user_desc __user *)tls, 0); in copy_thread_tls()
435 err = do_arch_prctl_64(p, ARCH_SET_FS, tls); in copy_thread_tls()
/arch/csky/abiv2/inc/abi/
Dentry.h26 stw tls, (sp, 0)
30 movi tls, \epc_inc
31 add lr, tls
69 ldw tls, (sp, 0)
Delf.h41 pr_reg[33] = regs->tls; \
/arch/openrisc/include/asm/
Dsyscalls.h24 void __user *parent_tid, void __user *child_tid, int tls);
/arch/x86/um/os-Linux/
DMakefile8 obj-$(CONFIG_X86_32) += tls.o
/arch/csky/include/uapi/asm/
Dptrace.h10 unsigned long tls; member
/arch/parisc/kernel/
Dprocess.c217 unsigned long kthread_arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
264 cregs->cr27 = tls; in copy_thread_tls()
/arch/x86/um/asm/
Dprocessor_32.h16 struct user_desc tls; member
/arch/riscv/kernel/
Dprocess.c103 unsigned long arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
125 childregs->tp = tls; in copy_thread_tls()
/arch/arc/kernel/
Dprocess.c175 unsigned long kthread_arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
233 task_thread_info(p)->thr_ptr = tls; in copy_thread_tls()
/arch/um/include/asm/
Dptrace-generic.h39 extern int arch_set_tls(struct task_struct *new, unsigned long tls);
/arch/xtensa/kernel/
Dprocess.c207 unsigned long tls) in copy_thread_tls() argument
269 childregs->threadptr = tls; in copy_thread_tls()
/arch/arm64/kernel/
Dptrace.c706 unsigned long *tls = &target->thread.uw.tp_value; in tls_get() local
711 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, tls, 0, -1); in tls_get()
719 unsigned long tls = target->thread.uw.tp_value; in tls_set() local
721 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in tls_set()
725 target->thread.uw.tp_value = tls; in tls_set()
1427 compat_ulong_t tls = (compat_ulong_t)target->thread.uw.tp_value; in compat_tls_get() local
1428 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in compat_tls_get()
1437 compat_ulong_t tls = target->thread.uw.tp_value; in compat_tls_set() local
1439 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in compat_tls_set()
1443 target->thread.uw.tp_value = tls; in compat_tls_set()
Dprocess.c363 unsigned long stk_sz, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
400 p->thread.uw.tp_value = tls; in copy_thread_tls()
/arch/um/kernel/
Dprocess.c157 unsigned long arg, struct task_struct * p, unsigned long tls) in copy_thread_tls() argument
191 ret = arch_set_tls(p, tls); in copy_thread_tls()
/arch/arm/kernel/
Dprocess.c228 unsigned long stk_sz, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
262 thread->tp_value[0] = tls; in copy_thread_tls()

12