kernel/arch/x86/um/tls_64.c
.. .. @@ -6,14 +6,13 @@ 6 6 { 7 7 } 8 8 9 -int arch_copy_tls(struct task_struct *t)9 +int arch_set_tls(struct task_struct *t, unsigned long tls)10 10 { 11 11 /* 12 12 * If CLONE_SETTLS is set, we need to save the thread id 13 - * (which is argument 5, child_tid, of clone) so it can be set14 - * during context switches.13 + * so it can be set during context switches.15 14 */ 16 - t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)];15 + t->thread.arch.fs = tls;17 16 18 17 return 0; 19 18 }