mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Add proper 8 byte alignment support.
This commit is contained in:
parent
0b86cb1e2c
commit
0a9fddb5d4
4 changed files with 16 additions and 17 deletions
|
@ -391,7 +391,7 @@ tskTCB * pxNewTCB;
|
|||
required by the port. */
|
||||
#if portSTACK_GROWTH < 0
|
||||
{
|
||||
pxTopOfStack = pxNewTCB->pxStack + ( usStackDepth - 1 );
|
||||
pxTopOfStack = pxNewTCB->pxStack + ( usStackDepth - 1 ) - ( ( usStackDepth - 1 ) % portBYTE_ALIGNMENT );
|
||||
}
|
||||
#else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue