From e0b66ccab87bd5142769e0f4fd3f2b5ac14796ba Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Thu, 3 Jun 2021 20:09:26 +0800 Subject: [PATCH] =?UTF-8?q?[kernel]=20=E5=AF=B9rt=5Ftick=E5=8F=98=E9=87=8F?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0volatile=E4=BF=AE=E9=A5=B0=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E7=BC=96=E8=AF=91=E5=99=A8=E4=BC=98=E5=8C=96=E6=97=B6?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clock.c b/src/clock.c index 045555933d..f02c524380 100644 --- a/src/clock.c +++ b/src/clock.c @@ -22,7 +22,7 @@ #ifdef RT_USING_SMP #define rt_tick rt_cpu_index(0)->tick #else -static rt_tick_t rt_tick = 0; +static volatile rt_tick_t rt_tick = 0; #endif /**