Skip to content

Commit 90d8db5

Browse files
committed
Fix build check
Signed-off-by: Gaurav Aggarwal <[email protected]>
1 parent f1132d0 commit 90d8db5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/stack_macros.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
#define taskCHECK_FOR_STACK_OVERFLOW( xCoreID ) \
8787
do \
8888
{ \
89-
const TCB_t * const pxTCB = pxCurrentTCBs[ xCoreID ]; \
89+
TCB_t * pxTCB = pxCurrentTCBs[ xCoreID ]; \
9090
\
9191
/* Is the currently saved stack pointer within the stack limit? */ \
9292
if( pxTCB->pxTopOfStack <= pxTCB->pxStack + portSTACK_LIMIT_PADDING ) \
@@ -123,7 +123,7 @@
123123
#define taskCHECK_FOR_STACK_OVERFLOW( xCoreID ) \
124124
do \
125125
{ \
126-
const TCB_t * const pxTCB = pxCurrentTCBs[ xCoreID ]; \
126+
TCB_t * pxTCB = pxCurrentTCBs[ xCoreID ]; \
127127
\
128128
/* Is the currently saved stack pointer within the stack limit? */ \
129129
if( pxTCB->pxTopOfStack >= pxTCB->pxEndOfStack - portSTACK_LIMIT_PADDING ) \
@@ -164,7 +164,7 @@
164164
#define taskCHECK_FOR_STACK_OVERFLOW( xCoreID ) \
165165
do \
166166
{ \
167-
const TCB_t * const pxTCB = pxCurrentTCBs[ xCoreID ]; \
167+
TCB_t * pxTCB = pxCurrentTCBs[ xCoreID ]; \
168168
const uint32_t * const pulStack = ( uint32_t * ) pxTCB->pxStack; \
169169
const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5U; \
170170
\
@@ -213,7 +213,7 @@
213213
#define taskCHECK_FOR_STACK_OVERFLOW( xCoreID ) \
214214
do \
215215
{ \
216-
const TCB_t * const pxTCB = pxCurrentTCBs[ xCoreID ]; \
216+
TCB_t * pxTCB = pxCurrentTCBs[ xCoreID ]; \
217217
int8_t * pcEndOfStack = ( int8_t * ) pxTCB->pxEndOfStack; \
218218
static const uint8_t ucExpectedStackBytes[] = { tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \
219219
tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \

0 commit comments

Comments
 (0)