summaryrefslogtreecommitdiffstats
path: root/TOOLS/cpuinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/cpuinfo.c')
-rw-r--r--TOOLS/cpuinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/TOOLS/cpuinfo.c b/TOOLS/cpuinfo.c
index d6c47cbf2d..25c6d1d6b4 100644
--- a/TOOLS/cpuinfo.c
+++ b/TOOLS/cpuinfo.c
@@ -63,10 +63,10 @@ cpuid(int func) {
static int64_t
rdtsc(void)
{
- unsigned int i, j;
+ uint64_t i;
#define RDTSC ".byte 0x0f, 0x31; "
- asm volatile (RDTSC : "=a"(i), "=d"(j) : );
- return ((int64_t)j<<32) + (int64_t)i;
+ asm volatile (RDTSC : "=A"(i) : );
+ return i;
}
static const char*