ref: 8a8329ad952b0fced970cc0b83e5e87d4a5ceb7a
parent: b7e67e9e36833431e3ae993e0ce482115de1ff45
author: cinap_lenrek <[email protected]>
date: Sun Jul 25 10:12:17 EDT 2021
bcm64: make the kernel use virtual timer counter register for cycles()
--- a/sys/src/9/bcm64/l.s
+++ b/sys/src/9/bcm64/l.s
@@ -298,6 +298,9 @@
RETURN
TEXT vcycles(SB), 1, $-4
+ MRS CNTVCT_EL0, R0
+ RETURN
+
TEXT lcycles(SB), 1, $-4
MRS PMCCNTR_EL0, R0
RETURN