mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-30 21:46:31 +00:00
da028d5e54
Don't include ptrace uapi stuff in arch headers, it will pollute the kernel namespace and conflict with existing stuff. In this case it fixes clashes with common names like R8. Signed-off-by: Richard Weinberger <richard@nod.at>
19 lines
389 B
C
19 lines
389 B
C
#include <linux/sched.h>
|
|
#include <asm/ptrace-abi.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;
|
|
}
|