提交 f5426f4a 编写于 作者: S shaojinchun

1 增加了bsp数据屏障接口函数 rt_hw_mb()

2 去除在secondary_cpu_c_start重复了的IPI handler的注册
上级 b628ac0e
......@@ -82,4 +82,10 @@ void rt_hw_spin_unlock(rt_hw_spinlock_t *lock)
lock->tickets.owner++;
__asm__ volatile ("dsb ishst\nsev":::"memory");
}
void rt_hw_mb(void)
{
__asm__ volatile ("dmb":::"memory");
}
#endif /*RT_USING_SMP*/
......@@ -46,10 +46,6 @@ void secondary_cpu_c_start(void)
rt_hw_interrupt_install(IRQ_PBA8_TIMER0_1, rt_hw_timer2_isr, RT_NULL, "tick");
rt_hw_interrupt_umask(IRQ_PBA8_TIMER0_1);
/* install IPI interrupt */
rt_hw_interrupt_install(RT_SCHEDULE_IPI_IRQ, rt_scheduler_ipi_handler, RT_NULL, "ipi");
rt_hw_interrupt_umask(RT_SCHEDULE_IPI_IRQ);
rt_system_scheduler_start();
}
......
......@@ -146,6 +146,8 @@ typedef union {
void rt_hw_spin_lock(rt_hw_spinlock_t *lock);
void rt_hw_spin_unlock(rt_hw_spinlock_t *lock);
void rt_hw_mb(void);
int rt_hw_cpu_id(void);
extern rt_hw_spinlock_t _cpus_lock;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册