shithub: plan9front

Download patch

ref: 8a8329ad952b0fced970cc0b83e5e87d4a5ceb7a
parent: b7e67e9e36833431e3ae993e0ce482115de1ff45
author: cinap_lenrek <cinap_lenrek@felloff.net>
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	Sun Jul 25 10:03:12 2021
+++ b/sys/src/9/bcm64/l.s	Sun Jul 25 10:12:17 2021
@@ -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