tls_64.c 358 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/sched.h>
  3. #include <asm/ptrace-abi.h>
  4. void clear_flushed_tls(struct task_struct *task)
  5. {
  6. }
  7. int arch_set_tls(struct task_struct *t, unsigned long tls)
  8. {
  9. /*
  10. * If CLONE_SETTLS is set, we need to save the thread id
  11. * so it can be set during context switches.
  12. */
  13. t->thread.arch.fs = tls;
  14. return 0;
  15. }