From ca41010b68d51b0fd2e8d795d101fd83dc6a7d30 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Wed, 19 Oct 2011 14:27:36 +0000
Subject: [PATCH] - Expanded clobber list on i386 RDTSC call
---
library/timing.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/library/timing.c b/library/timing.c
index 94c36d13c..523dbe11e 100644
--- a/library/timing.c
+++ b/library/timing.c
@@ -70,9 +70,9 @@ unsigned long hardclock( void )
unsigned long hardclock( void )
{
- unsigned long tsc;
- asm( "rdtsc" : "=a" (tsc) );
- return( tsc );
+ unsigned long lo, hi;
+ asm( "rdtsc" : "=a" (lo), "=d" (hi) );
+ return( lo );
}
#else