From 030bd37378097b45346eb3d6dfc6fba18718fb29 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 10 May 2017 07:21:29 -0400 Subject: 32bit plaform fixes --- src/include/common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include/common.h') diff --git a/src/include/common.h b/src/include/common.h index 59b7f6213..7067ae68c 100644 --- a/src/include/common.h +++ b/src/include/common.h @@ -115,6 +115,10 @@ static inline unsigned long long getticks(void) { unsigned a, d; asm volatile("rdtsc" : "=a" (a), "=d" (d)); return ((unsigned long long)a) | (((unsigned long long)d) << 32); +#elif defined(__i386__) + unsigned long long ret; + __asm__ __volatile__("rdtsc" : "=A" (ret)); + return ret; #else return 0; // not implemented #endif -- cgit v1.2.3-70-g09d2