From ace9429bb58fd418f0c81d4c2835699bddf6bde6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 11 Apr 2024 10:27:49 +0200 Subject: Adding upstream version 6.6.15. Signed-off-by: Daniel Baumann --- arch/x86/um/tls_64.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 arch/x86/um/tls_64.c (limited to 'arch/x86/um/tls_64.c') diff --git a/arch/x86/um/tls_64.c b/arch/x86/um/tls_64.c new file mode 100644 index 0000000000..ebd3855d9b --- /dev/null +++ b/arch/x86/um/tls_64.c @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0 +#include +#include + +void clear_flushed_tls(struct task_struct *task) +{ +} + +int arch_set_tls(struct task_struct *t, unsigned long tls) +{ + /* + * If CLONE_SETTLS is set, we need to save the thread id + * so it can be set during context switches. + */ + t->thread.arch.fs = tls; + + return 0; +} -- cgit v1.2.3