freertos: add parameter validation checks in xTaskCreateStaticPinnedToCore

Regression from commit-id a3c90bf59add307d3a41f5fb4c17385ee67dcf20
This commit is contained in:
Mahavir Jain 2020-10-20 14:04:26 +05:30 committed by Angus Gratton
parent c87fe77ef9
commit 199b2cb79d

View File

@ -637,8 +637,9 @@ void taskYIELD_OTHER_CORE( BaseType_t xCoreID, UBaseType_t uxPriority )
TCB_t *pxNewTCB;
TaskHandle_t xReturn;
configASSERT( pxStackBuffer != NULL );
configASSERT( pxTaskBuffer != NULL );
configASSERT( portVALID_TCB_MEM(pxTaskBuffer) );
configASSERT( portVALID_STACK_MEM(pxStackBuffer) );
configASSERT( (xCoreID>=0 && xCoreID<portNUM_PROCESSORS) || (xCoreID==tskNO_AFFINITY) );
#if( configASSERT_DEFINED == 1 )
{