Rev 3153 | Rev 4343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3153 | Rev 3564 | ||
|---|---|---|---|
| Line 49... | Line 49... | ||
| 49 | #define CS_ENTER_BARRIER() asm volatile ("" ::: "memory") |
49 | #define CS_ENTER_BARRIER() asm volatile ("" ::: "memory") |
| 50 | #define CS_LEAVE_BARRIER() asm volatile ("" ::: "memory") |
50 | #define CS_LEAVE_BARRIER() asm volatile ("" ::: "memory") |
| 51 | 51 | ||
| 52 | static inline void cpuid_serialization(void) |
52 | static inline void cpuid_serialization(void) |
| 53 | { |
53 | { |
| 54 | #ifndef __PIC__ |
54 | #ifndef __IN_SHARED_LIBC__ |
| 55 | asm volatile ( |
55 | asm volatile ( |
| 56 | "xorl %%eax, %%eax\n" |
56 | "xorl %%eax, %%eax\n" |
| 57 | "cpuid\n" |
57 | "cpuid\n" |
| 58 | ::: "eax", "ebx", "ecx", "edx", "memory" |
58 | ::: "eax", "ebx", "ecx", "edx", "memory" |
| 59 | ); |
59 | ); |