summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/time/tsc_arm64.s
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/time/tsc_arm64.s')
-rw-r--r--pkg/sentry/time/tsc_arm64.s6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/sentry/time/tsc_arm64.s b/pkg/sentry/time/tsc_arm64.s
index da9fa4112..711349fa1 100644
--- a/pkg/sentry/time/tsc_arm64.s
+++ b/pkg/sentry/time/tsc_arm64.s
@@ -20,3 +20,9 @@ TEXT ·Rdtsc(SB),NOSPLIT,$0-8
WORD $0xd53be040 //MRS CNTVCT_EL0, R0
MOVD R0, ret+0(FP)
RET
+
+TEXT ·getCNTFRQ(SB),NOSPLIT,$0-8
+ // Get the virtual counter frequency.
+ WORD $0xd53be000 //MRS CNTFRQ_EL0, R0
+ MOVD R0, ret+0(FP)
+ RET