summaryrefslogtreecommitdiff
path: root/libcpu/aarch64
diff options
context:
space:
mode:
Diffstat (limited to 'libcpu/aarch64')
-rw-r--r--libcpu/aarch64/cortex-a53/context_gcc.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/libcpu/aarch64/cortex-a53/context_gcc.S b/libcpu/aarch64/cortex-a53/context_gcc.S
index d5c241036e..934db7ed84 100644
--- a/libcpu/aarch64/cortex-a53/context_gcc.S
+++ b/libcpu/aarch64/cortex-a53/context_gcc.S
@@ -26,6 +26,20 @@ rt_hw_set_gtimer_val:
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
*/
.globl rt_hw_get_gtimer_frq