freertos: mark port_xSchedulerRunning as volatile

pull/5628/head
Renz Bagaporo 2020-03-06 14:27:23 +08:00 zatwierdzone przez Angus Gratton
rodzic 3386316f81
commit 5e59b4a812
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -151,7 +151,7 @@ static const char* TAG = "cpu_start"; // [refactor-todo]: might be appropriate t
_Static_assert(tskNO_AFFINITY == CONFIG_FREERTOS_NO_AFFINITY, "incorrect tskNO_AFFINITY value");
/*-----------------------------------------------------------*/
unsigned port_xSchedulerRunning[portNUM_PROCESSORS] = {0}; // Duplicate of inaccessible xSchedulerRunning; needed at startup to avoid counting nesting
volatile unsigned port_xSchedulerRunning[portNUM_PROCESSORS] = {0}; // Duplicate of inaccessible xSchedulerRunning; needed at startup to avoid counting nesting
unsigned port_interruptNesting[portNUM_PROCESSORS] = {0}; // Interrupt nesting level. Increased/decreased in portasm.c, _frxt_int_enter/_frxt_int_exit
BaseType_t port_uxCriticalNesting[portNUM_PROCESSORS] = {0};
BaseType_t port_uxOldInterruptState[portNUM_PROCESSORS] = {0};