1 | #include <tls.h> |
---|---|
2 | |
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) |
13 | |
14 | #include "../sched_setaffinity.c" |
15 |