]> git.sur5r.net Git - freertos/commitdiff
Move one of the configASSERT() statements in tasks.c to be inside the if() that check...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 18 Feb 2011 17:40:30 +0000 (17:40 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 18 Feb 2011 17:40:30 +0000 (17:40 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1300 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/tasks.c

index 122fedcb6f67c416962cddcf6b6ccac25822da36..aad896a6d70a0baa01b17b6d4e007a7096ea617b 100644 (file)
@@ -454,9 +454,6 @@ tskTCB * pxNewTCB;
                        uxPriority &= ~portPRIVILEGE_BIT;\r
                #endif /* portUSING_MPU_WRAPPERS == 1 */\r
 \r
-               /* Check the alignment of the stack buffer is correct. */\r
-               configASSERT( !( ( unsigned long ) pxNewTCB->pxStack & ( unsigned long ) portBYTE_ALIGNMENT_MASK ) );\r
-\r
                /* Calculate the top of stack address.  This depends on whether the\r
                stack grows from high memory to low (as per the 80x86) or visa versa.\r
                portSTACK_GROWTH is used to make the result positive or negative as\r
@@ -472,6 +469,9 @@ tskTCB * pxNewTCB;
                #else\r
                {\r
                        pxTopOfStack = pxNewTCB->pxStack;\r
+                       \r
+                       /* Check the alignment of the stack buffer is correct. */\r
+                       configASSERT( !( ( unsigned long ) pxNewTCB->pxStack & ( unsigned long ) portBYTE_ALIGNMENT_MASK ) );\r
 \r
                        /* If we want to use stack checking on architectures that use\r
                        a positive stack growth direction then we also need to store the\r