Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-block.git] / arch / x86 / um / tls_64.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
37185b33 2#include <linux/sched.h>
da028d5e 3#include <asm/ptrace-abi.h>
aa6758d4 4
aa6758d4
PBG
5void clear_flushed_tls(struct task_struct *task)
6{
7}
8
9int arch_copy_tls(struct task_struct *t)
10{
f355559c
JD
11 /*
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 set
14 * during context switches.
15 */
18baddda 16 t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)];
f355559c 17
ba180fd4 18 return 0;
aa6758d4 19}