mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
18badddaa8
Before the removal of tt mode, access to a register on the skas-mode side of a pt_regs struct looked like pt_regs.regs.skas.regs.regs[FOO]. This was bad enough, but it became pt_regs.regs.regs.regs[FOO] with the removal of the union from the middle. To get rid of the run of three "regs", the last field is renamed to "gp". Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
18 lines
361 B
C
18 lines
361 B
C
#include "linux/sched.h"
|
|
|
|
void clear_flushed_tls(struct task_struct *task)
|
|
{
|
|
}
|
|
|
|
int arch_copy_tls(struct task_struct *t)
|
|
{
|
|
/*
|
|
* If CLONE_SETTLS is set, we need to save the thread id
|
|
* (which is argument 5, child_tid, of clone) so it can be set
|
|
* during context switches.
|
|
*/
|
|
t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)];
|
|
|
|
return 0;
|
|
}
|