diff options
Diffstat (limited to 'ace/gethrtime.cpp')
-rw-r--r-- | ace/gethrtime.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ace/gethrtime.cpp b/ace/gethrtime.cpp index 518d5172992..8d290724a8f 100644 --- a/ace/gethrtime.cpp +++ b/ace/gethrtime.cpp @@ -29,11 +29,10 @@ ACE_gethrtime (void) // "now". The A constraint signifies a 64-bit int. #if defined (__GNUG__) asm volatile ("rdtsc" : "=A" (now) : : "memory"); -// #elif defined (ghs) -// The following doesn't work. For now, this file must be compile with g++. -// asm ("rdtsc"); -// asm ("movl %edx,-16(%ebp)"); -// asm ("movl %eax,-12(%ebp)"); +#elif defined (ghs) + asm ("rdtsc"); + asm ("movl -16(%ebp),%edx"); + asm ("movl -12(%ebp),%eax"); #else # error unsupported compiler #endif |