Commit | Line | Data |
---|---|---|
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 |
5 | void clear_flushed_tls(struct task_struct *task) |
6 | { | |
7 | } | |
8 | ||
9 | int 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 | } |