diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-25 14:12:17 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-07-25 14:12:17 +0000 |
commit | 8a8329ad952b0fced970cc0b83e5e87d4a5ceb7a (patch) | |
tree | 5a57793c3d5a9b0c5ce3d6c75f7037b37b311d7b | |
parent | b7e67e9e36833431e3ae993e0ce482115de1ff45 (diff) | |
download | plan9front-8a8329ad952b0fced970cc0b83e5e87d4a5ceb7a.tar.xz |
bcm64: make the kernel use virtual timer counter register for cycles()
-rw-r--r-- | sys/src/9/bcm64/l.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/9/bcm64/l.s b/sys/src/9/bcm64/l.s index 86035d6bb..1e9bdb217 100644 --- a/sys/src/9/bcm64/l.s +++ b/sys/src/9/bcm64/l.s @@ -298,6 +298,9 @@ _goodnight: RETURN TEXT vcycles(SB), 1, $-4 + MRS CNTVCT_EL0, R0 + RETURN + TEXT lcycles(SB), 1, $-4 MRS PMCCNTR_EL0, R0 RETURN |