Parcourir la source

aarch64: document the CNTFRQ_EL0

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Yonggang Luo il y a 2 mois
Parent
commit
0cf096e064
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      libcpu/aarch64/common/cpu_gcc.S

+ 4 - 1
libcpu/aarch64/common/cpu_gcc.S

@@ -119,7 +119,10 @@ rt_hw_get_cntpct_val:
     ret
     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
 .globl rt_hw_get_gtimer_frq
 rt_hw_get_gtimer_frq:
 rt_hw_get_gtimer_frq: