mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-12 06:35:19 -05:00
Resolved VF parse error. Deleted functions involving inline assembler.
This commit is contained in:
parent
997d39d894
commit
ee70a7815d
1 changed files with 21 additions and 9 deletions
30
tasks.c
30
tasks.c
|
|
@ -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 */
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue