summaryrefslogtreecommitdiff
path: root/framework/timer/timer_framework.c
diff options
context:
space:
mode:
Diffstat (limited to 'framework/timer/timer_framework.c')
-rw-r--r--framework/timer/timer_framework.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/timer/timer_framework.c b/framework/timer/timer_framework.c
index 593644b..d85799d 100644
--- a/framework/timer/timer_framework.c
+++ b/framework/timer/timer_framework.c
@@ -84,7 +84,7 @@ static irq_handler_t timer_handler[PLATFORM_CORE_COUNT];
static inline unsigned long long get_current_time_ms(void)
{
assert(systicks_per_ms);
- return mmio_read_64(SYS_CNT_BASE1 + CNTPCT_LO) / systicks_per_ms;
+ return read_cntpct_el0() / systicks_per_ms;
}
static inline unsigned long long get_current_prog_time(void)