Skip to content

Commit 0cf096e

Browse files
lygstateRbb666
authored andcommitted
aarch64: document the CNTFRQ_EL0
Signed-off-by: Yonggang Luo <[email protected]>
1 parent e2aed47 commit 0cf096e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcpu/aarch64/common/cpu_gcc.S

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ rt_hw_get_cntpct_val:
119119
ret
120120

121121
/*
122-
*get gtimer frq value
122+
* get gtimer frq value
123+
* According to the document `Arm A-profile Architecture Registers:
124+
* CNTFRQ_EL0, Counter-timer Frequency Register`
125+
* Bits [63:32] are reserved, so only the lower 32 bits take effect.
123126
*/
124127
.globl rt_hw_get_gtimer_frq
125128
rt_hw_get_gtimer_frq:

0 commit comments

Comments
 (0)