|
|
|
@ -2666,6 +2666,9 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
|
|
|
|
* https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
|
|
|
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
|
|
|
|
|
|
|
|
/* MISRA Ref 4.7.1 [Return value shall be checked] */
|
|
|
|
|
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */
|
|
|
|
|
/* coverity[misra_c_2012_directive_4_7_violation] */
|
|
|
|
|
uxSavedInterruptStatus = ( UBaseType_t ) taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
|
{
|
|
|
|
|
/* If null is passed in here then it is the priority of the calling
|
|
|
|
@ -2737,6 +2740,9 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
|
|
|
|
* https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
|
|
|
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
|
|
|
|
|
|
|
|
/* MISRA Ref 4.7.1 [Return value shall be checked] */
|
|
|
|
|
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */
|
|
|
|
|
/* coverity[misra_c_2012_directive_4_7_violation] */
|
|
|
|
|
uxSavedInterruptStatus = ( UBaseType_t ) taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
|
{
|
|
|
|
|
/* If null is passed in here then it is the base priority of the calling
|
|
|
|
@ -3433,6 +3439,9 @@ static void prvInitialiseNewTask( TaskFunction_t pxTaskCode,
|
|
|
|
|
* https://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
|
|
|
|
|
portASSERT_IF_INTERRUPT_PRIORITY_INVALID();
|
|
|
|
|
|
|
|
|
|
/* MISRA Ref 4.7.1 [Return value shall be checked] */
|
|
|
|
|
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */
|
|
|
|
|
/* coverity[misra_c_2012_directive_4_7_violation] */
|
|
|
|
|
uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
|
{
|
|
|
|
|
if( prvTaskIsTaskSuspended( pxTCB ) != pdFALSE )
|
|
|
|
@ -4989,6 +4998,9 @@ BaseType_t xTaskIncrementTick( void )
|
|
|
|
|
|
|
|
|
|
/* Save the hook function in the TCB. A critical section is required as
|
|
|
|
|
* the value can be accessed from an interrupt. */
|
|
|
|
|
/* MISRA Ref 4.7.1 [Return value shall be checked] */
|
|
|
|
|
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */
|
|
|
|
|
/* coverity[misra_c_2012_directive_4_7_violation] */
|
|
|
|
|
uxSavedInterruptStatus = taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
|
{
|
|
|
|
|
xReturn = pxTCB->pxTaskTag;
|
|
|
|
@ -7974,6 +7986,9 @@ TickType_t uxTaskResetEventItemValue( void )
|
|
|
|
|
|
|
|
|
|
pxTCB = xTaskToNotify;
|
|
|
|
|
|
|
|
|
|
/* MISRA Ref 4.7.1 [Return value shall be checked] */
|
|
|
|
|
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */
|
|
|
|
|
/* coverity[misra_c_2012_directive_4_7_violation] */
|
|
|
|
|
uxSavedInterruptStatus = ( UBaseType_t ) taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
|
{
|
|
|
|
|
if( pulPreviousNotificationValue != NULL )
|
|
|
|
@ -8133,6 +8148,9 @@ TickType_t uxTaskResetEventItemValue( void )
|
|
|
|
|
|
|
|
|
|
pxTCB = xTaskToNotify;
|
|
|
|
|
|
|
|
|
|
/* MISRA Ref 4.7.1 [Return value shall be checked] */
|
|
|
|
|
/* More details at: https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/MISRA.md#dir-47 */
|
|
|
|
|
/* coverity[misra_c_2012_directive_4_7_violation] */
|
|
|
|
|
uxSavedInterruptStatus = ( UBaseType_t ) taskENTER_CRITICAL_FROM_ISR();
|
|
|
|
|
{
|
|
|
|
|
ucOriginalNotifyState = pxTCB->ucNotifyState[ uxIndexToNotify ];
|
|
|
|
|