Explorar el Código

OS/FreeRTOS: Fix smp freertos sync fail when compiler option > O0

Signed-off-by: Huaqi Fang <578567190@qq.com>
Huaqi Fang hace 10 meses
padre
commit
164eeed4cd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      OS/FreeRTOS/Source/portable/port.c

+ 1 - 1
OS/FreeRTOS/Source/portable/port.c

@@ -217,7 +217,7 @@ void vPortRecursiveLock(unsigned long ulLockNum, spin_lock_t *pxSpinLock, BaseTy
 }
 #endif
 
-static unsigned long ulSchedulerReady = 0;
+static volatile unsigned long ulSchedulerReady = 0;
 /*-----------------------------------------------------------*/
 
 /*