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