2007-05-11 01:38:55 +02:00
|
|
|
#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)
|
|
|
|
|
2014-05-14 21:33:43 +02:00
|
|
|
#include <sysdeps/unix/sysv/linux/pthread_setaffinity.c>
|