diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /arch/um/sys-x86_64/tls.c | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'arch/um/sys-x86_64/tls.c')
-rw-r--r-- | arch/um/sys-x86_64/tls.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/um/sys-x86_64/tls.c b/arch/um/sys-x86_64/tls.c new file mode 100644 index 00000000000..f7ba46200ec --- /dev/null +++ b/arch/um/sys-x86_64/tls.c | |||
@@ -0,0 +1,17 @@ | |||
1 | #include "linux/sched.h" | ||
2 | |||
3 | void clear_flushed_tls(struct task_struct *task) | ||
4 | { | ||
5 | } | ||
6 | |||
7 | int arch_copy_tls(struct task_struct *t) | ||
8 | { | ||
9 | /* | ||
10 | * If CLONE_SETTLS is set, we need to save the thread id | ||
11 | * (which is argument 5, child_tid, of clone) so it can be set | ||
12 | * during context switches. | ||
13 | */ | ||
14 | t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)]; | ||
15 | |||
16 | return 0; | ||
17 | } | ||