mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
pxTopOfStack is always available and pxEndOfStack is available whenever you have: (portSTACK_GROWTH > 0) or ( configRECORD_STACK_HIGH_ADDRESS == 1) Include it in the info report whenever it is available to the tcb. Co-authored-by: Vince Burns <vburns@sensata.com>
This commit is contained in:
parent
785250de45
commit
da2428fbb1
|
@ -167,7 +167,7 @@ typedef struct xTASK_STATUS
|
||||||
UBaseType_t uxBasePriority; /* The priority to which the task will return if the task's current priority has been inherited to avoid unbounded priority inversion when obtaining a mutex. Only valid if configUSE_MUTEXES is defined as 1 in FreeRTOSConfig.h. */
|
UBaseType_t uxBasePriority; /* The priority to which the task will return if the task's current priority has been inherited to avoid unbounded priority inversion when obtaining a mutex. Only valid if configUSE_MUTEXES is defined as 1 in FreeRTOSConfig.h. */
|
||||||
configRUN_TIME_COUNTER_TYPE ulRunTimeCounter; /* The total run time allocated to the task so far, as defined by the run time stats clock. See https://www.FreeRTOS.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h. */
|
configRUN_TIME_COUNTER_TYPE ulRunTimeCounter; /* The total run time allocated to the task so far, as defined by the run time stats clock. See https://www.FreeRTOS.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h. */
|
||||||
StackType_t * pxStackBase; /* Points to the lowest address of the task's stack area. */
|
StackType_t * pxStackBase; /* Points to the lowest address of the task's stack area. */
|
||||||
#if ( ( portSTACK_GROWTH > 0 ) && ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
|
#if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
|
||||||
StackType_t * pxTopOfStack; /* Points to the top address of the task's stack area. */
|
StackType_t * pxTopOfStack; /* Points to the top address of the task's stack area. */
|
||||||
StackType_t * pxEndOfStack; /* Points to the end address of the task's stack area. */
|
StackType_t * pxEndOfStack; /* Points to the end address of the task's stack area. */
|
||||||
#endif
|
#endif
|
||||||
|
|
2
tasks.c
2
tasks.c
|
@ -5545,7 +5545,7 @@ static void prvCheckTasksWaitingTermination( void )
|
||||||
pxTaskStatus->pcTaskName = ( const char * ) &( pxTCB->pcTaskName[ 0 ] );
|
pxTaskStatus->pcTaskName = ( const char * ) &( pxTCB->pcTaskName[ 0 ] );
|
||||||
pxTaskStatus->uxCurrentPriority = pxTCB->uxPriority;
|
pxTaskStatus->uxCurrentPriority = pxTCB->uxPriority;
|
||||||
pxTaskStatus->pxStackBase = pxTCB->pxStack;
|
pxTaskStatus->pxStackBase = pxTCB->pxStack;
|
||||||
#if ( ( portSTACK_GROWTH > 0 ) && ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
|
#if ( ( portSTACK_GROWTH > 0 ) || ( configRECORD_STACK_HIGH_ADDRESS == 1 ) )
|
||||||
pxTaskStatus->pxTopOfStack = pxTCB->pxTopOfStack;
|
pxTaskStatus->pxTopOfStack = pxTCB->pxTopOfStack;
|
||||||
pxTaskStatus->pxEndOfStack = pxTCB->pxEndOfStack;
|
pxTaskStatus->pxEndOfStack = pxTCB->pxEndOfStack;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue