add soc timer cntpct

This commit is contained in:
bigmagic
2020-03-19 18:31:55 +08:00
parent 0f57faa591
commit efbb5490d7
2 changed files with 16 additions and 0 deletions
+14
View File
@@ -25,6 +25,20 @@ rt_hw_set_gtimer_val:
MSR CNTP_TVAL_EL0,X0
RET
/*
*get gtimer CNTP_TVAL_EL0 value
*/
.globl rt_hw_get_gtimer_val
rt_hw_get_gtimer_val:
MRS X0,CNTP_TVAL_EL0
RET
.globl rt_hw_get_cntpct_val
rt_hw_get_cntpct_val:
MRS X0, CNTPCT_EL0
RET
/*
*get gtimer frq value
*/