Skip to content

Commit

Permalink
Merge pull request #510 from tesonep/implementing-highResClock-ARM64
Browse files Browse the repository at this point in the history
Implementation for ARM64 Unix
  • Loading branch information
tesonep authored Dec 1, 2022
2 parents 2f226ea + bc5fda6 commit 5b46720
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extracted/vm/src/common/heartbeat.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ ioHighResClock(void)
: "=a" (value)
:
: "rdx");
#elif (defined(__arm__) && (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7A__))) || defined(__aarch64__) || defined(_M_ARM64)
#elif defined(__GNUC__) && defined(__aarch64__)

__asm__ __volatile__("mrs %0, cntvct_el0" : "=r"(value));

#elif (defined(__arm__) && (defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7A__)))
/* tpr - do nothing for now; needs input from eliot to decide further */
/* Tim, not sure I have input beyond:
Is there a 64-bit clock on ARM? If so, access it here :-)
Expand Down

0 comments on commit 5b46720

Please sign in to comment.