File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 88
88
89
89
#if ( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH < 0 ) )
90
90
91
- #define taskCHECK_FOR_STACK_OVERFLOW () \
92
- do { \
93
- const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \
94
- const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U; \
95
- \
96
- if( ( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack + portSTACK_LIMIT_PADDING ) || \
97
- ( pulStack[ 0 ] != ulCheckValue ) || \
98
- ( pulStack[ 1 ] != ulCheckValue ) || \
99
- ( pulStack[ 2 ] != ulCheckValue ) || \
100
- ( pulStack[ 3 ] != ulCheckValue ) ) \
101
- { \
102
- char * pcOverflowTaskName = pxCurrentTCB->pcTaskName; \
103
- vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pcOverflowTaskName ); \
104
- } \
91
+ #define taskCHECK_FOR_STACK_OVERFLOW () \
92
+ do { \
93
+ const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \
94
+ const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U; \
95
+ \
96
+ if( ( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack + portSTACK_LIMIT_PADDING ) || \
97
+ ( pulStack[ 0 ] != ulCheckValue ) || \
98
+ ( pulStack[ 1 ] != ulCheckValue ) || \
99
+ ( pulStack[ 2 ] != ulCheckValue ) || \
100
+ ( pulStack[ 3 ] != ulCheckValue ) ) \
101
+ { \
102
+ char * pcOverflowTaskName = pxCurrentTCB->pcTaskName; \
103
+ vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pcOverflowTaskName ); \
104
+ } \
105
105
} while( 0 )
106
106
107
107
#endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */
You can’t perform that action at this time.
0 commit comments