Resolved VF parse error. Deleted functions involving inline assembler.

This commit is contained in:
Tobias Reinhard 2022-10-13 12:52:57 -04:00
parent 997d39d894
commit ee70a7815d

12
tasks.c
View file

@ -602,6 +602,11 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
/*-----------------------------------------------------------*/
#ifndef VERIFAST
/* Reason for rewrite:
* VeriFast cannot handle inline assembler and both `portDISABLE_INTERRUPTS`
* and `portRESTORE_INTERRUPTS` expand to inline assembler instructions.
*/
static BaseType_t prvGetCurrentYieldPending( void )
{
BaseType_t xReturn;
@ -613,9 +618,15 @@ static BaseType_t prvGetCurrentYieldPending( void )
return xReturn;
}
#endif /* VERIFAST */
/*-----------------------------------------------------------*/
#ifndef VERIFAST
/* Reason for rewrite:
* VeriFast cannot handle inline assembler and `portCHECK_IF_IN_ISR`
* expands to inline assembler.
*/
static void prvCheckForRunStateChange( void )
{
UBaseType_t uxPrevCriticalNesting;
@ -690,6 +701,7 @@ static void prvCheckForRunStateChange( void )
}
}
}
#endif /* VERIFAST */
/*-----------------------------------------------------------*/