mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04:00
Convert some ports to use xTaskIncrementTick() in place of vTaskIncrementTick().
Move DSB instructions to before WFI instructions in line with ARM recommendations.
This commit is contained in:
parent
4e9374ad90
commit
686d190798
27 changed files with 128 additions and 142 deletions
|
@ -220,16 +220,11 @@ unsigned long ulSavedInterruptMask;
|
|||
/* Increment the RTOS tick. */
|
||||
ulSavedInterruptMask = portSET_INTERRUPT_MASK_FROM_ISR();
|
||||
{
|
||||
vTaskIncrementTick();
|
||||
if( xTaskIncrementTick() != pdFALSE )
|
||||
{
|
||||
taskYIELD();
|
||||
}
|
||||
}
|
||||
portCLEAR_INTERRUPT_MASK_FROM_ISR( ulSavedInterruptMask );
|
||||
|
||||
/* If we are using the pre-emptive scheduler then also request a
|
||||
context switch as incrementing the tick could have unblocked a task. */
|
||||
#if configUSE_PREEMPTION == 1
|
||||
{
|
||||
taskYIELD();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -260,11 +260,10 @@ void interrupt vPortTickInterrupt( void )
|
|||
portSAVE_CONTEXT();
|
||||
|
||||
/* Increment the tick ... */
|
||||
vTaskIncrementTick();
|
||||
|
||||
/* ... then see if the new tick value has necessitated a
|
||||
context switch. */
|
||||
vTaskSwitchContext();
|
||||
if( xTaskIncrementTick() != pdFALSE )
|
||||
{
|
||||
vTaskSwitchContext();
|
||||
}
|
||||
|
||||
TFLG1 = 1;
|
||||
|
||||
|
@ -274,7 +273,7 @@ void interrupt vPortTickInterrupt( void )
|
|||
}
|
||||
#else
|
||||
{
|
||||
vTaskIncrementTick();
|
||||
xTaskIncrementTick();
|
||||
TFLG1 = 1;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue