mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-12 06:35:19 -05:00
Verified new contract for xTaskGetCurrentTaskHandle.
This commit is contained in:
parent
63a8d73ecc
commit
fb01980b63
2 changed files with 5 additions and 5 deletions
4
tasks.c
4
tasks.c
|
|
@ -895,7 +895,7 @@ static void prvYieldForTask( TCB_t * pxTCB,
|
|||
|
||||
static BaseType_t prvSelectHighestPriorityTask( const BaseType_t xCoreID )
|
||||
//@ requires true;
|
||||
//@ assert true;
|
||||
//@ ensures true;
|
||||
{
|
||||
UBaseType_t uxCurrentPriority = uxTopReadyPriority;
|
||||
BaseType_t xTaskScheduled = pdFALSE;
|
||||
|
|
@ -5353,9 +5353,7 @@ static void prvResetNextTaskUnblockTime( void )
|
|||
uint32_t ulState;
|
||||
|
||||
ulState = portDISABLE_INTERRUPTS();
|
||||
//@ open coreLocalInterruptInv_p();
|
||||
xReturn = pxCurrentTCBs[ portGET_CORE_ID() ];
|
||||
//@ close coreLocalInterruptInv_p();
|
||||
portRESTORE_INTERRUPTS( ulState );
|
||||
|
||||
return xReturn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue