powerpc: Enforce compiler barriers on hardware transactions
[glibc.git] / sysdeps / unix / sysv / linux / x86_64 / pthread_setaffinity.c
bloba7bbe3815693ffe58824b62fa51644ab66dc5005
1 #include <tls.h>
3 #define RESET_VGETCPU_CACHE() \
4 do { \
5 asm volatile ("movl %0, %%fs:%P1\n\t" \
6 "movl %0, %%fs:%P2" \
7 : \
8 : "ir" (0), "i" (offsetof (struct pthread, \
9 header.vgetcpu_cache[0])), \
10 "i" (offsetof (struct pthread, \
11 header.vgetcpu_cache[1]))); \
12 } while (0)
14 #include <sysdeps/unix/sysv/linux/pthread_setaffinity.c>