diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-12 18:01:20 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-12 18:01:20 +0000 |
commit | 1a3cce5f3c5f54f647d8919d4fceb7c183221385 (patch) | |
tree | 2c4643edf5356a8160b5d310dec1803d4f644d41 | |
parent | bdb6d0183cd42c5288be0c7679a0f78ba0e4abb0 (diff) | |
download | ATCD-1a3cce5f3c5f54f647d8919d4fceb7c183221385.tar.gz |
added support for rdtsc instruction with GHS on Intel targets
-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 |