Add proper 8 byte alignment support.

This commit is contained in:
Richard Barry 2009-06-30 16:32:36 +00:00
parent 0b86cb1e2c
commit 0a9fddb5d4
4 changed files with 16 additions and 17 deletions

View file

@ -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
{