diff options
| author | Yonggang Luo <[email protected]> | 2025-10-21 15:53:14 +0800 |
|---|---|---|
| committer | R b b666 <[email protected]> | 2025-10-23 22:08:05 +0800 |
| commit | 0cf096e0645746aa18eacb01725a71373a574516 (patch) | |
| tree | abb01b4a43b021b4d2ae9a8f066f220fa2b4818e /libcpu | |
| parent | e2aed47b6c0ef75ead36cae04c4e9afd9d8049aa (diff) | |
aarch64: document the CNTFRQ_EL0
Signed-off-by: Yonggang Luo <[email protected]>
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/aarch64/common/cpu_gcc.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcpu/aarch64/common/cpu_gcc.S b/libcpu/aarch64/common/cpu_gcc.S index ab15f4c241..840668a78b 100644 --- a/libcpu/aarch64/common/cpu_gcc.S +++ b/libcpu/aarch64/common/cpu_gcc.S @@ -119,7 +119,10 @@ rt_hw_get_cntpct_val: ret /* - *get gtimer frq value + * get gtimer frq value + * According to the document `Arm A-profile Architecture Registers: + * CNTFRQ_EL0, Counter-timer Frequency Register` + * Bits [63:32] are reserved, so only the lower 32 bits take effect. */ .globl rt_hw_get_gtimer_frq rt_hw_get_gtimer_frq: |
