https://github.com/torvalds/linux
Raw File
Tip revision: 508efc09cce9f1de8b1b5ae304bf913b12d832a6 authored by dependabot[bot] on 18 July 2024, 21:26:06 UTC
build(deps): bump idna from 3.4 to 3.7 in /drivers/gpu/drm/ci/xfails
Tip revision: 508efc0
tls_64.c
// SPDX-License-Identifier: GPL-2.0
#include <linux/sched.h>
#include <asm/ptrace-abi.h>

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.regs.regs.gp[FS_BASE / sizeof(unsigned long)] = tls;

	return 0;
}
back to top