mirror of
https://github.com/espressif/esp-idf
synced 2025-03-14 03:29:11 -04:00
Merge branch 'bugfix/esp32s2_o2_op_v4.2' into 'release/v4.2'
freertos: fix build error at -O2 optimization level (v4.2) See merge request espressif/esp-idf!10301
This commit is contained in:
commit
4ffe6c096a
@ -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 );
|
||||
}
|
||||
|
1
tools/test_apps/system/startup/sdkconfig.ci.opt_o2
Normal file
1
tools/test_apps/system/startup/sdkconfig.ci.opt_o2
Normal file
@ -0,0 +1 @@
|
||||
CONFIG_COMPILER_OPTIMIZATION_PERF=y
|
Loading…
x
Reference in New Issue
Block a user