summaryrefslogtreecommitdiff
path: root/libcpu/aarch64/common/gtimer.c
diff options
context:
space:
mode:
authorShell <[email protected]>2022-12-20 17:49:37 +0800
committerGitHub <[email protected]>2022-12-20 17:49:37 +0800
commite8504c7cf1d03c07608e2197eaef728a6aecde7a (patch)
tree744bbacef2efbd8afbf04cc63e4d287b38ebcc65 /libcpu/aarch64/common/gtimer.c
parentf0ef8ada33833942684a6280314160de8c355302 (diff)
[smart/aarch64] code sync (#6750)
* [smart/aarch64] sync aarch64
Diffstat (limited to 'libcpu/aarch64/common/gtimer.c')
-rw-r--r--libcpu/aarch64/common/gtimer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/aarch64/common/gtimer.c b/libcpu/aarch64/common/gtimer.c
index 74187a92cb..881655c2cf 100644
--- a/libcpu/aarch64/common/gtimer.c
+++ b/libcpu/aarch64/common/gtimer.c
@@ -26,9 +26,9 @@ static void rt_hw_timer_isr(int vector, void *parameter)
void rt_hw_gtimer_init(void)
{
rt_hw_interrupt_install(EL1_PHY_TIMER_IRQ_NUM, rt_hw_timer_isr, RT_NULL, "tick");
- __ISB();
+ rt_hw_isb();
timer_step = rt_hw_get_gtimer_frq();
- __DSB();
+ rt_hw_dsb();
timer_step /= RT_TICK_PER_SECOND;
rt_hw_gtimer_local_enable();
}