mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/uninitialized_tasknumber_v4.3' into 'release/v4.3'
fix(FreeRTOS): Initialize uxTaskNumber at task initialization (v4.3) See merge request espressif/esp-idf!14669
This commit is contained in:
commit
1d866dc4a0
@ -917,6 +917,13 @@ UBaseType_t x;
|
||||
}
|
||||
#endif /* tskSET_NEW_STACKS_TO_KNOWN_VALUE */
|
||||
|
||||
#if( configUSE_TRACE_FACILITY == 1 )
|
||||
{
|
||||
/* Zero the uxTaskNumber TCB member to avoid random value from dynamically allocated TCBs */
|
||||
pxNewTCB->uxTaskNumber = 0;
|
||||
}
|
||||
#endif /* ( configUSE_TRACE_FACILITY == 1 ) */
|
||||
|
||||
/* Calculate the top of stack address. This depends on whether the stack
|
||||
grows from high memory to low (as per the 80x86) or vice versa.
|
||||
portSTACK_GROWTH is used to make the result positive or negative as required
|
||||
|
Loading…
Reference in New Issue
Block a user