bcm64: make the kernel use virtual timer counter register for cycles()

This commit is contained in:
cinap_lenrek 2021-07-25 14:12:17 +00:00
parent b7e67e9e36
commit 8a8329ad95

View file

@ -298,6 +298,9 @@ _goodnight:
RETURN RETURN
TEXT vcycles(SB), 1, $-4 TEXT vcycles(SB), 1, $-4
MRS CNTVCT_EL0, R0
RETURN
TEXT lcycles(SB), 1, $-4 TEXT lcycles(SB), 1, $-4
MRS PMCCNTR_EL0, R0 MRS PMCCNTR_EL0, R0
RETURN RETURN