mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
f324d1d8dd
Situation:
Assume we have 2 cpus.
CPU0 CPU1
1. -> nxsched_alarm_expiration
2. -> nxshced_timer_start
3. -> ONESHOT_TICK_START
4. now timer in IRQ
5. in thread
6. -> wd_start
7. -> nxshced_timer_start
8. -> ONESHOT_TICK_START
9. reentry timer crash
Fix:
Enter critical section before nxsched_timer_start
Signed-off-by: yangguangcai <yangguangcai@xiaomi.com>