aboutsummaryrefslogtreecommitdiff
path: root/src/x86/cpuid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/x86/cpuid.h')
-rw-r--r--src/x86/cpuid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86/cpuid.h b/src/x86/cpuid.h
index 7da0f67..f24fc98 100644
--- a/src/x86/cpuid.h
+++ b/src/x86/cpuid.h
@@ -74,7 +74,7 @@
#ifndef __native_client__
static inline uint64_t xgetbv(uint32_t ext_ctrl_reg) {
uint32_t lo, hi;
- asm(".byte 0x0F, 0x01, 0xD0" : "=a" (lo), "=d" (hi) : "c" (ext_ctrl_reg));
+ __asm__(".byte 0x0F, 0x01, 0xD0" : "=a" (lo), "=d" (hi) : "c" (ext_ctrl_reg));
return ((uint64_t) hi << 32) | (uint64_t) lo;
}
#endif