Merge branch 'bugfix/esp32s2_o2_op' into 'master'

freertos: fix build error at -O2 optimization level

Closes IDFGH-3581

See merge request espressif/esp-idf!9444
This commit is contained in:
Ivan Grokhotkov
2020-08-05 22:03:00 +08:00
2 changed files with 3 additions and 1 deletions

View File

@@ -645,10 +645,11 @@ static void prvAddNewTaskToReadyList( TCB_t *pxNewTCB, TaskFunction_t pxTaskCode
*/
void taskYIELD_OTHER_CORE( BaseType_t xCoreID, UBaseType_t uxPriority )
{
TCB_t *curTCB = pxCurrentTCB[xCoreID];
TCB_t *curTCB;
BaseType_t i;
if (xCoreID != tskNO_AFFINITY) {
curTCB = pxCurrentTCB[xCoreID];
if ( curTCB->uxPriority < uxPriority ) { // NOLINT(clang-analyzer-core.NullDereference) IDF-685
vPortYieldOtherCore( xCoreID );
}

View File

@@ -0,0 +1 @@
CONFIG_COMPILER_OPTIMIZATION_PERF=y