]> git.sur5r.net Git - freertos/commitdiff
Add use of portPOINTER_SIZE_TYPE to tasks.c to facilitate the removal of warnings...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 6 Sep 2011 16:09:48 +0000 (16:09 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 6 Sep 2011 16:09:48 +0000 (16:09 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1584 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/tasks.c

index 01d7565ec6fb10b6a1ad11e404d2074dca672f92..4cc548a6627766ea405618fc24fffcea40c56f07 100644 (file)
@@ -3,8 +3,8 @@
        \r
 \r
        FreeRTOS supports many tools and architectures. V7.0.0 is sponsored by:\r
-       Atollic AB - Atollic provides professional embedded systems development \r
-       tools for C/C++ development, code analysis and test automation.  \r
+       Atollic AB - Atollic provides professional embedded systems development\r
+       tools for C/C++ development, code analysis and test automation.\r
        See http://www.atollic.com\r
        \r
 \r
@@ -473,7 +473,7 @@ tskTCB * pxNewTCB;
                #if( portSTACK_GROWTH < 0 )\r
                {\r
                        pxTopOfStack = pxNewTCB->pxStack + ( usStackDepth - ( unsigned short ) 1 );\r
-                       pxTopOfStack = ( portSTACK_TYPE * ) ( ( ( unsigned long ) pxTopOfStack ) & ( ( unsigned long ) ~portBYTE_ALIGNMENT_MASK  ) );\r
+                       pxTopOfStack = ( portSTACK_TYPE * ) ( ( ( portPOINTER_SIZE_TYPE ) pxTopOfStack ) & ( ( portPOINTER_SIZE_TYPE ) ~portBYTE_ALIGNMENT_MASK  ) );\r
 \r
                        /* Check the alignment of the calculated top of stack is correct. */\r
                        configASSERT( ( ( ( unsigned long ) pxTopOfStack & ( unsigned long ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );\r
@@ -950,7 +950,7 @@ tskTCB * pxNewTCB;
                                /* The scheduler is not running, but the task that was pointed\r
                                to by pxCurrentTCB has just been suspended and pxCurrentTCB\r
                                must be adjusted to point to a different task. */\r
-                               if( listCURRENT_LIST_LENGTH( &xSuspendedTaskList ) == uxCurrentNumberOfTasks ) \r
+                               if( listCURRENT_LIST_LENGTH( &xSuspendedTaskList ) == uxCurrentNumberOfTasks )\r
                                {\r
                                        /* No other tasks are ready, so set pxCurrentTCB back to\r
                                        NULL so when the next task is created pxCurrentTCB will\r
@@ -1532,18 +1532,18 @@ tskTCB * pxTCB;
        \r
                        if( listLIST_IS_EMPTY( pxDelayedTaskList ) != pdFALSE )\r
                        {\r
-                               /* The new current delayed list is empty.  Set \r
-                               xNextTaskUnblockTime to the maximum possible value so it is \r
+                               /* The new current delayed list is empty.  Set\r
+                               xNextTaskUnblockTime to the maximum possible value so it is\r
                                extremely unlikely that the     \r
-                               if( xTickCount >= xNextTaskUnblockTime ) test will pass until \r
+                               if( xTickCount >= xNextTaskUnblockTime ) test will pass until\r
                                there is an item in the delayed list. */\r
                                xNextTaskUnblockTime = portMAX_DELAY;\r
                        }\r
                        else\r
                        {\r
-                               /* The new current delayed list is not empty, get the value of \r
-                               the item at the head of the delayed list.  This is the time at \r
-                               which the task at the head of the delayed list should be removed \r
+                               /* The new current delayed list is not empty, get the value of\r
+                               the item at the head of the delayed list.  This is the time at\r
+                               which the task at the head of the delayed list should be removed\r
                                from the Blocked state. */\r
                                pxTCB = ( tskTCB * ) listGET_OWNER_OF_HEAD_ENTRY( pxDelayedTaskList );\r
                                xNextTaskUnblockTime = listGET_LIST_ITEM_VALUE( &( pxTCB->xGenericListItem ) );\r