diff options
Diffstat (limited to 'src/asm.h')
| -rwxr-xr-x | src/asm.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -25,10 +25,9 @@ cachepc_readpmc(uint64_t event) uint32_t lo, hi; asm volatile ( - "mov %[event], %%rcx\t\n" - "rdpmc\t\n" + "rdmsr" : "=a" (lo), "=d" (hi) - : [event] "r" (event) + : "c"(event) ); return ((uint64_t) hi << 32) | lo; |
