mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-12 14:45:09 -05:00
Paused partial proof for xTaskCreate.
This commit is contained in:
parent
c4f5c09a81
commit
9fa8c76447
1 changed files with 12 additions and 6 deletions
18
tasks.c
18
tasks.c
|
|
@ -1431,6 +1431,12 @@ static void prvYieldForTask( TCB_t * pxTCB,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* TODO: Continue proof
|
||||||
|
* For now we stop verification here and concentrate on new
|
||||||
|
* verification target.
|
||||||
|
*/
|
||||||
|
//@ assume(false);
|
||||||
|
|
||||||
prvAddNewTaskToReadyList( pxNewTCB );
|
prvAddNewTaskToReadyList( pxNewTCB );
|
||||||
xReturn = pdPASS;
|
xReturn = pdPASS;
|
||||||
}
|
}
|
||||||
|
|
@ -1876,10 +1882,10 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
|
|
||||||
static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
|
static void prvAddNewTaskToReadyList( TCB_t * pxNewTCB )
|
||||||
/*@ requires interruptState_p(?coreID, _) &*&
|
/*//@ requires interruptState_p(?coreID, _) &*&
|
||||||
unprotectedGlobalVars();
|
unprotectedGlobalVars();
|
||||||
@*/
|
@*/
|
||||||
/*@ ensures true;
|
/*//@ ensures true;
|
||||||
@*/
|
@*/
|
||||||
{
|
{
|
||||||
/* Ensure interrupts don't access the task lists while the lists are being
|
/* Ensure interrupts don't access the task lists while the lists are being
|
||||||
|
|
@ -5284,8 +5290,8 @@ static void prvResetNextTaskUnblockTime( void )
|
||||||
#if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
|
#if ( ( INCLUDE_xTaskGetCurrentTaskHandle == 1 ) || ( configUSE_MUTEXES == 1 ) )
|
||||||
|
|
||||||
TaskHandle_t xTaskGetCurrentTaskHandle( void )
|
TaskHandle_t xTaskGetCurrentTaskHandle( void )
|
||||||
//@ requires interruptState_p(?coreID, ?irpState);
|
///@ requires interruptState_p(?coreID, ?irpState);
|
||||||
//@ ensures interruptState_p(coreID, irpState) &*& false;
|
///@ ensures interruptState_p(coreID, irpState) &*& false;
|
||||||
{
|
{
|
||||||
TaskHandle_t xReturn;
|
TaskHandle_t xReturn;
|
||||||
uint32_t ulState;
|
uint32_t ulState;
|
||||||
|
|
@ -5662,8 +5668,8 @@ void vTaskYieldWithinAPI( void )
|
||||||
#if ( portCRITICAL_NESTING_IN_TCB == 1 )
|
#if ( portCRITICAL_NESTING_IN_TCB == 1 )
|
||||||
|
|
||||||
void vTaskEnterCritical( void )
|
void vTaskEnterCritical( void )
|
||||||
//@ requires interruptState_p(?coreID, _) &*& unprotectedGlobalVars();
|
///@ requires interruptState_p(?coreID, _) &*& unprotectedGlobalVars();
|
||||||
//@ ensures false;
|
///@ ensures false;
|
||||||
{
|
{
|
||||||
portDISABLE_INTERRUPTS();
|
portDISABLE_INTERRUPTS();
|
||||||
//@ open unprotectedGlobalVars();
|
//@ open unprotectedGlobalVars();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue