pthread_setaffinity.c 421 B

1234567891011121314
  1. #include <tls.h>
  2. #define RESET_VGETCPU_CACHE() \
  3. do { \
  4. __asm__ __volatile__ ("movl %0, %%fs:%P1\n\t" \
  5. "movl %0, %%fs:%P2" \
  6. : \
  7. : "ir" (0), "i" (offsetof (struct pthread, \
  8. header.vgetcpu_cache[0])), \
  9. "i" (offsetof (struct pthread, \
  10. header.vgetcpu_cache[1]))); \
  11. } while (0)
  12. #include "../pthread_setaffinity.c"