]> git.sur5r.net Git - freertos/commitdiff
Add missing cast where one of the static MPU blocks are configured.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 10 Oct 2009 18:45:46 +0000 (18:45 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sat, 10 Oct 2009 18:45:46 +0000 (18:45 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@915 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/GCC/ARM_CM3_MPU/port.c

index f689728ce119a611dbe3e973fafdcaedca8f032b..0074c5bce69030917a0767daee17c0142b5b941e 100644 (file)
@@ -426,7 +426,7 @@ extern unsigned long __privileged_data_end__[];
 \r
                *portMPU_REGION_ATTRIBUTE =             ( portMPU_REGION_PRIVILEGED_READ_ONLY ) |\r
                                                                                ( portMPU_REGION_CACHEABLE_BUFFERABLE ) | \r
-                                                                               ( prvGetMPURegionSizeSetting( __privileged_functions_end__ - __FLASH_segment_start__ ) ) | \r
+                                                                               ( prvGetMPURegionSizeSetting( ( unsigned long ) __privileged_functions_end__ - ( unsigned long ) __FLASH_segment_start__ ) ) | \r
                                                                                ( portMPU_REGION_ENABLE );\r
 \r
                /* Setup the privileged data RAM region.  This is where the kernel data\r
@@ -560,7 +560,7 @@ unsigned long ul;
 \r
                        xMPUSettings->xRegion[ 0 ].ulRegionAttribute =  \r
                                        ( portMPU_REGION_READ_WRITE ) | /* Read and write. */\r
-                                       ( prvGetMPURegionSizeSetting( usStackDepth * sizeof( portSTACK_TYPE ) ) ) |\r
+                                       ( prvGetMPURegionSizeSetting( ( unsigned long ) usStackDepth * ( unsigned long ) sizeof( portSTACK_TYPE ) ) ) |\r
                                        ( portMPU_REGION_CACHEABLE_BUFFERABLE ) |\r
                                        ( portMPU_REGION_ENABLE );\r
                }\r