File tree 20 files changed +6
-61
lines changed
ARMv8M/non_secure/portable
20 files changed +6
-61
lines changed Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change 264
264
* @param[in] pxTCB The TCB of the task being deleted.
265
265
*/
266
266
#define portCLEAN_UP_TCB ( pxTCB ) vPortFreeSecureContext( ( uint32_t * ) pxTCB )
267
- #else
268
- #define portALLOCATE_SECURE_CONTEXT ( ulSecureStackSize )
269
- #define portCLEAN_UP_TCB ( pxTCB )
270
267
#endif /* configENABLE_TRUSTZONE */
271
268
/*-----------------------------------------------------------*/
272
269
Original file line number Diff line number Diff line change @@ -144,8 +144,6 @@ extern volatile unsigned int ulCriticalNesting;
144
144
#if defined( __MW__ )
145
145
extern void task_end_hook ( void * pxTCB );
146
146
#define portCLEAN_UP_TCB ( pxTCB ) task_end_hook( ( void * ) pxTCB )
147
- #else
148
- #define portCLEAN_UP_TCB ( pxTCB ) ( void ) pxTCB
149
147
#endif
150
148
151
149
void vPortYield ( void );
Original file line number Diff line number Diff line change 138
138
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS () do {} while( 0 ) /* we use the timer */
139
139
#define portALT_GET_RUN_TIME_COUNTER_VALUE ( dest ) ( dest = xTickCount )
140
140
141
- #define portCLEAN_UP_TCB ( pxTCB ) ( void ) pxTCB
142
-
143
141
void vPortYield ( void );
144
142
void vPortYieldFromIsr ( void );
145
143
Original file line number Diff line number Diff line change @@ -182,9 +182,6 @@ void exit(int);
182
182
183
183
#if (XT_USE_THREAD_SAFE_CLIB > 0u ) && (XSHAL_CLIB == XTHAL_CLIB_XCLIB )
184
184
extern void vPortClibInit (void );
185
-
186
- // No cleanup necessary at this time.
187
- #define portCLEAN_UP_TCB (pxTCB )
188
185
#endif // XCLIB support
189
186
190
187
#if (XT_USE_THREAD_SAFE_CLIB > 0u ) && (XSHAL_CLIB == XTHAL_CLIB_NEWLIB )
Original file line number Diff line number Diff line change 462
462
}
463
463
else
464
464
{
465
- pxTimer -> ucStatus &= ~tmrSTATUS_IS_AUTORELOAD ;
465
+ pxTimer -> ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_AUTORELOAD ) ;
466
466
}
467
467
}
468
468
taskEXIT_CRITICAL ();
550
550
}
551
551
else
552
552
{
553
- pxTimer -> ucStatus &= ~tmrSTATUS_IS_ACTIVE ;
553
+ pxTimer -> ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ) ;
554
554
}
555
555
556
556
/* Call the timer callback. */
829
829
}
830
830
else
831
831
{
832
- pxTimer -> ucStatus &= ~tmrSTATUS_IS_ACTIVE ;
832
+ pxTimer -> ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ) ;
833
833
}
834
834
835
835
/* Call the timer callback. */
846
846
case tmrCOMMAND_STOP :
847
847
case tmrCOMMAND_STOP_FROM_ISR :
848
848
/* The timer has already been removed from the active list. */
849
- pxTimer -> ucStatus &= ~tmrSTATUS_IS_ACTIVE ;
849
+ pxTimer -> ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ) ;
850
850
break ;
851
851
852
852
case tmrCOMMAND_CHANGE_PERIOD :
876
876
}
877
877
else
878
878
{
879
- pxTimer -> ucStatus &= ~tmrSTATUS_IS_ACTIVE ;
879
+ pxTimer -> ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ) ;
880
880
}
881
881
}
882
882
#else /* if ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) */
885
885
* could not have been dynamically allocated. So there is
886
886
* no need to free the memory - just mark the timer as
887
887
* "not active". */
888
- pxTimer -> ucStatus &= ~tmrSTATUS_IS_ACTIVE ;
888
+ pxTimer -> ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ) ;
889
889
}
890
890
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
891
891
break ;
You can’t perform that action at this time.
0 commit comments