Al Viro | 37185b3 | 2012-10-08 03:27:32 +0100 | [diff] [blame] | 1 | #include <linux/sched.h> |
Richard Weinberger | da028d5 | 2015-06-25 22:44:11 +0200 | [diff] [blame] | 2 | #include <asm/ptrace-abi.h> |
Paolo 'Blaisorblade' Giarrusso | aa6758d | 2006-03-31 02:30:22 -0800 | [diff] [blame] | 3 | |
Paolo 'Blaisorblade' Giarrusso | aa6758d | 2006-03-31 02:30:22 -0800 | [diff] [blame] | 4 | void clear_flushed_tls(struct task_struct *task) |
| 5 | { |
| 6 | } |
| 7 | |
| 8 | int arch_copy_tls(struct task_struct *t) |
| 9 | { |
Jeff Dike | f355559 | 2007-02-10 01:44:29 -0800 | [diff] [blame] | 10 | /* |
| 11 | * If CLONE_SETTLS is set, we need to save the thread id |
| 12 | * (which is argument 5, child_tid, of clone) so it can be set |
| 13 | * during context switches. |
| 14 | */ |
Jeff Dike | 18baddd | 2007-10-16 01:27:07 -0700 | [diff] [blame] | 15 | t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)]; |
Jeff Dike | f355559 | 2007-02-10 01:44:29 -0800 | [diff] [blame] | 16 | |
Jeff Dike | ba180fd | 2007-10-16 01:27:00 -0700 | [diff] [blame] | 17 | return 0; |
Paolo 'Blaisorblade' Giarrusso | aa6758d | 2006-03-31 02:30:22 -0800 | [diff] [blame] | 18 | } |