mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-21 04:31:04 +08:00
15 lines
434 B
C
15 lines
434 B
C
#include <tls.h>
|
|
|
|
#define RESET_VGETCPU_CACHE() \
|
|
do { \
|
|
asm volatile ("movl %0, %%fs:%P1\n\t" \
|
|
"movl %0, %%fs:%P2" \
|
|
: \
|
|
: "ir" (0), "i" (offsetof (struct pthread, \
|
|
header.vgetcpu_cache[0])), \
|
|
"i" (offsetof (struct pthread, \
|
|
header.vgetcpu_cache[1]))); \
|
|
} while (0)
|
|
|
|
#include <sysdeps/unix/sysv/linux/pthread_setaffinity.c>
|