From: richardbarry Date: Sat, 10 Oct 2009 18:45:46 +0000 (+0000) Subject: Add missing cast where one of the static MPU blocks are configured. X-Git-Tag: V6.0.0~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5cbb409f3295513450a164b31884e025dcd7b853;p=freertos Add missing cast where one of the static MPU blocks are configured. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@915 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/GCC/ARM_CM3_MPU/port.c b/Source/portable/GCC/ARM_CM3_MPU/port.c index f689728ce..0074c5bce 100644 --- a/Source/portable/GCC/ARM_CM3_MPU/port.c +++ b/Source/portable/GCC/ARM_CM3_MPU/port.c @@ -426,7 +426,7 @@ extern unsigned long __privileged_data_end__[]; *portMPU_REGION_ATTRIBUTE = ( portMPU_REGION_PRIVILEGED_READ_ONLY ) | ( portMPU_REGION_CACHEABLE_BUFFERABLE ) | - ( prvGetMPURegionSizeSetting( __privileged_functions_end__ - __FLASH_segment_start__ ) ) | + ( prvGetMPURegionSizeSetting( ( unsigned long ) __privileged_functions_end__ - ( unsigned long ) __FLASH_segment_start__ ) ) | ( portMPU_REGION_ENABLE ); /* Setup the privileged data RAM region. This is where the kernel data @@ -560,7 +560,7 @@ unsigned long ul; xMPUSettings->xRegion[ 0 ].ulRegionAttribute = ( portMPU_REGION_READ_WRITE ) | /* Read and write. */ - ( prvGetMPURegionSizeSetting( usStackDepth * sizeof( portSTACK_TYPE ) ) ) | + ( prvGetMPURegionSizeSetting( ( unsigned long ) usStackDepth * ( unsigned long ) sizeof( portSTACK_TYPE ) ) ) | ( portMPU_REGION_CACHEABLE_BUFFERABLE ) | ( portMPU_REGION_ENABLE ); }