mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-12 06:35:19 -05:00
Refined task control block predicate TCB_p such that it can be used to justify memset-ing the stack.
This commit is contained in:
parent
80134a65ed
commit
1042ea8cf8
3 changed files with 15 additions and 7 deletions
4
tasks.c
4
tasks.c
|
|
@ -1356,12 +1356,12 @@ static void prvYieldForTask( TCB_t * pxTCB,
|
|||
pxNewTCB = ( TCB_t * ) pvPortMalloc( sizeof( TCB_t ) ); /*lint !e9087 !e9079 All values returned by pvPortMalloc() have at least the alignment required by the MCU's stack, and the first member of TCB_t is always a pointer to the task's stack. */
|
||||
|
||||
if( pxNewTCB != NULL )
|
||||
{
|
||||
{
|
||||
/* Store the stack location in the TCB. */
|
||||
pxNewTCB->pxStack = pxStack;
|
||||
//@ close xLIST_ITEM(&pxNewTCB->xStateListItem, _, _, _, _);
|
||||
//@ close xLIST_ITEM(&pxNewTCB->xEventListItem, _, _, _, _);
|
||||
//@ close TCB_p(pxNewTCB);
|
||||
//@ close TCB_p(pxNewTCB, ((size_t) usStackDepth) * sizeof(StackType_t));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue