diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 19:06:39 (GMT) |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 13:15:05 (GMT) |
commit | 5c48b108ecbf6505d929e64d50dace13ac2bdf34 (patch) | |
tree | 016904f84fbe05aa301c5cdfe712d90f6bb828fe /arch/x86/um/tls_64.c | |
parent | 7bbe7204e93734fe79d8aac3e08a7cb4624b5004 (diff) | |
download | linux-fsl-qoriq-5c48b108ecbf6505d929e64d50dace13ac2bdf34.tar.xz |
um: take arch/um/sys-x86 to arch/x86/um
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um/tls_64.c')
-rw-r--r-- | arch/x86/um/tls_64.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/x86/um/tls_64.c b/arch/x86/um/tls_64.c new file mode 100644 index 0000000..f7ba462 --- /dev/null +++ b/arch/x86/um/tls_64.c @@ -0,0 +1,17 @@ +#include "linux/sched.h" + +void clear_flushed_tls(struct task_struct *task) +{ +} + +int arch_copy_tls(struct task_struct *t) +{ + /* + * If CLONE_SETTLS is set, we need to save the thread id + * (which is argument 5, child_tid, of clone) so it can be set + * during context switches. + */ + t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)]; + + return 0; +} |