diff options
-rw-r--r-- | ace/Makefile | 7 | ||||
-rw-r--r-- | ace/gethrtime.cpp | 9 |
2 files changed, 4 insertions, 12 deletions
diff --git a/ace/Makefile b/ace/Makefile index d0ccf206752..add0382348e 100644 --- a/ace/Makefile +++ b/ace/Makefile @@ -457,13 +457,6 @@ ifeq ($(CHORUS),1) endif # CC endif # CHORUS -ifneq ($(GHS),) - ifeq ($(CPU),86) - $(VDIR)gethrtime.$(OBJEXT): - make $@ ghs=0 - endif # 86 -endif # GHS - #---------------------------------------------------------------------------- # Dependencies #---------------------------------------------------------------------------- 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 |