bcm64: make the kernel use virtual timer counter register for cycles()
This commit is contained in:
parent
b7e67e9e36
commit
8a8329ad95
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue