x86/asm: Replace magic numbers in GDT descriptors, preparations
[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
457677c7 9int 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 */
457677c7 15 t->thread.arch.fs = tls;
f355559c 16
ba180fd4 17 return 0;
aa6758d4 18}