tls_64.c 361 B

123456789101112131415161718
  1. #include "linux/sched.h"
  2. void clear_flushed_tls(struct task_struct *task)
  3. {
  4. }
  5. int arch_copy_tls(struct task_struct *t)
  6. {
  7. /*
  8. * If CLONE_SETTLS is set, we need to save the thread id
  9. * (which is argument 5, child_tid, of clone) so it can be set
  10. * during context switches.
  11. */
  12. t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)];
  13. return 0;
  14. }