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 | ||
457677c7 | 9 | int arch_set_tls(struct task_struct *t, unsigned long tls) |
aa6758d4 | 10 | { |
f355559c JD |
11 | /* |
12 | * If CLONE_SETTLS is set, we need to save the thread id | |
457677c7 | 13 | * so it can be set during context switches. |
f355559c | 14 | */ |
1ca14435 | 15 | t->thread.regs.regs.gp[FS_BASE / sizeof(unsigned long)] = tls; |
f355559c | 16 | |
ba180fd4 | 17 | return 0; |
aa6758d4 | 18 | } |