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

30
tasks.c
View file

@ -602,20 +602,31 @@ static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB ) PRIVILEGED_FUNCTION;
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
static BaseType_t prvGetCurrentYieldPending( void ) #ifndef VERIFAST
{ /* Reason for rewrite:
BaseType_t xReturn; * VeriFast cannot handle inline assembler and both `portDISABLE_INTERRUPTS`
UBaseType_t ulState; * and `portRESTORE_INTERRUPTS` expand to inline assembler instructions.
*/
static BaseType_t prvGetCurrentYieldPending( void )
{
BaseType_t xReturn;
UBaseType_t ulState;
ulState = portDISABLE_INTERRUPTS(); ulState = portDISABLE_INTERRUPTS();
xReturn = xYieldPendings[ portGET_CORE_ID() ]; xReturn = xYieldPendings[ portGET_CORE_ID() ];
portRESTORE_INTERRUPTS( ulState ); portRESTORE_INTERRUPTS( ulState );
return xReturn; 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 ) static void prvCheckForRunStateChange( void )
{ {
UBaseType_t uxPrevCriticalNesting; UBaseType_t uxPrevCriticalNesting;
@ -690,6 +701,7 @@ static void prvCheckForRunStateChange( void )
} }
} }
} }
#endif /* VERIFAST */
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/