diff --git a/components/freertos/tasks.c b/components/freertos/tasks.c index d70a278b1..7bf51472c 100644 --- a/components/freertos/tasks.c +++ b/components/freertos/tasks.c @@ -3508,7 +3508,10 @@ UBaseType_t uxPriority; vListInitialise( &xDelayedTaskList1 ); vListInitialise( &xDelayedTaskList2 ); - vListInitialise( &xPendingReadyList[ xPortGetCoreID() ] ); + vListInitialise( &xPendingReadyList[ 0 ] ); + if (portNUM_PROCESSORS == 2) { + vListInitialise( &xPendingReadyList[ 1 ] ); + } #if ( INCLUDE_vTaskDelete == 1 ) {