Home
last modified time | relevance | path

Searched refs:tls (Results 1 – 25 of 34) 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.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()
218 int arch_set_tls(struct task_struct *new, unsigned long tls) in arch_set_tls() argument
223 if (copy_from_user(&info, (void __user *) tls, sizeof(info))) in arch_set_tls()
252 *info = t->arch.tls_array[idx - GDT_ENTRY_TLS_MIN].tls; in get_tls_entry()
/arch/s390/kernel/
Dprocess.c83 unsigned long arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
146 p->thread.acrs[0] = (unsigned int)tls; in copy_thread_tls()
148 p->thread.acrs[0] = (unsigned int)(tls >> 32); in copy_thread_tls()
149 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.h24 stw tls, (sp, 0)
28 movi tls, \epc_inc
29 add lr, tls
61 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.c212 unsigned long kthread_arg, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
259 cregs->cr27 = tls; in copy_thread_tls()
/arch/csky/kernel/
Dsyscall.c11 reg->tls = addr; in SYSCALL_DEFINE1()
Dptrace.c82 regs->tls = task_thread_info(target)->tp_value; in gpr_get()
103 task_thread_info(target)->tp_value = regs.tls; in gpr_set()
283 fp->exregs[12], fp->exregs[13], fp->exregs[14], fp->tls); in show_regs()
Dprocess.c66 task_thread_info(p)->tp_value = childregs->tls in copy_thread()
/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
123 childregs->tp = 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.c693 unsigned long *tls = &target->thread.uw.tp_value; in tls_get() local
698 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, tls, 0, -1); in tls_get()
706 unsigned long tls = target->thread.uw.tp_value; in tls_set() local
708 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in tls_set()
712 target->thread.uw.tp_value = tls; in tls_set()
1407 compat_ulong_t tls = (compat_ulong_t)target->thread.uw.tp_value; in compat_tls_get() local
1408 return user_regset_copyout(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in compat_tls_get()
1417 compat_ulong_t tls = target->thread.uw.tp_value; in compat_tls_set() local
1419 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1); in compat_tls_set()
1423 target->thread.uw.tp_value = tls; in compat_tls_set()
Dprocess.c360 unsigned long stk_sz, struct task_struct *p, unsigned long tls) in copy_thread_tls() argument
397 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()
/arch/arm/boot/dts/
Dat91-vinco.dts198 label = "tls";

12