diff --git a/arch/arm/src/kinetis/kinetis_allocateheap.c b/arch/arm/src/kinetis/kinetis_allocateheap.c index ab58efa4a8c..43e47725b6a 100644 --- a/arch/arm/src/kinetis/kinetis_allocateheap.c +++ b/arch/arm/src/kinetis/kinetis_allocateheap.c @@ -123,7 +123,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -137,7 +137,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - kinetis_mpu_uheap(ubase, usize); + kinetis_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -177,7 +177,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/lc823450/lc823450_allocateheap2.c b/arch/arm/src/lc823450/lc823450_allocateheap2.c index 7b13592fd0a..8a8134bd142 100644 --- a/arch/arm/src/lc823450/lc823450_allocateheap2.c +++ b/arch/arm/src/lc823450/lc823450_allocateheap2.c @@ -143,7 +143,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -160,7 +160,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - lc823450_mpu_uheap(ubase, usize); + lc823450_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -208,7 +208,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/lpc17xx/lpc17_allocateheap.c b/arch/arm/src/lpc17xx/lpc17_allocateheap.c index 36198f65e03..f739ca3b3bc 100644 --- a/arch/arm/src/lpc17xx/lpc17_allocateheap.c +++ b/arch/arm/src/lpc17xx/lpc17_allocateheap.c @@ -233,7 +233,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -247,7 +247,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - lpc17_mpu_uheap(ubase, usize); + lpc17_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -287,7 +287,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/lpc43xx/lpc43_allocateheap.c b/arch/arm/src/lpc43xx/lpc43_allocateheap.c index 4594a04cdea..cb0165246dd 100644 --- a/arch/arm/src/lpc43xx/lpc43_allocateheap.c +++ b/arch/arm/src/lpc43xx/lpc43_allocateheap.c @@ -436,7 +436,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -454,7 +454,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - lpc43_mpu_uheap(ubase, usize); + lpc43_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -503,7 +503,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/sam34/sam_allocateheap.c b/arch/arm/src/sam34/sam_allocateheap.c index 2211d715cb7..3e1d5e6efe9 100644 --- a/arch/arm/src/sam34/sam_allocateheap.c +++ b/arch/arm/src/sam34/sam_allocateheap.c @@ -222,7 +222,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -236,7 +236,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - sam_mpu_uheap(ubase, usize); + sam_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -276,7 +276,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/samv7/sam_allocateheap.c b/arch/arm/src/samv7/sam_allocateheap.c index 8355d237262..1e8dc087963 100644 --- a/arch/arm/src/samv7/sam_allocateheap.c +++ b/arch/arm/src/samv7/sam_allocateheap.c @@ -229,7 +229,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -243,7 +243,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - sam_mpu_uheap(ubase, usize); + sam_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -283,7 +283,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/stm32/stm32_allocateheap.c b/arch/arm/src/stm32/stm32_allocateheap.c index 414c440dba8..fffc119e429 100644 --- a/arch/arm/src/stm32/stm32_allocateheap.c +++ b/arch/arm/src/stm32/stm32_allocateheap.c @@ -581,7 +581,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -599,7 +599,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - stm32_mpu_uheap(ubase, usize); + stm32_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -643,7 +643,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/stm32f7/stm32_allocateheap.c b/arch/arm/src/stm32f7/stm32_allocateheap.c index 72c2ba9e3e4..afc23bbe0d0 100644 --- a/arch/arm/src/stm32f7/stm32_allocateheap.c +++ b/arch/arm/src/stm32f7/stm32_allocateheap.c @@ -292,7 +292,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -310,7 +310,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - stm32_mpu_uheap(ubase, usize); + stm32_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -354,7 +354,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/stm32h7/stm32_allocateheap.c b/arch/arm/src/stm32h7/stm32_allocateheap.c index e1bbfa2c637..c0b924f89f4 100644 --- a/arch/arm/src/stm32h7/stm32_allocateheap.c +++ b/arch/arm/src/stm32h7/stm32_allocateheap.c @@ -213,7 +213,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -231,7 +231,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - stm32_mpu_uheap(ubase, usize); + stm32_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -275,7 +275,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/stm32l4/stm32l4_allocateheap.c b/arch/arm/src/stm32l4/stm32l4_allocateheap.c index 16908e5c46c..2d68bc5ef1a 100644 --- a/arch/arm/src/stm32l4/stm32l4_allocateheap.c +++ b/arch/arm/src/stm32l4/stm32l4_allocateheap.c @@ -241,7 +241,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -259,7 +259,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - stm32l4_mpu_uheap(ubase, usize); + stm32l4_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -303,7 +303,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/tiva/common/tiva_allocateheap.c b/arch/arm/src/tiva/common/tiva_allocateheap.c index 9dfe0b92cfe..8d0e23be16a 100644 --- a/arch/arm/src/tiva/common/tiva_allocateheap.c +++ b/arch/arm/src/tiva/common/tiva_allocateheap.c @@ -123,7 +123,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -137,7 +137,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - tiva_mpu_uheap(ubase, usize); + tiva_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -177,7 +177,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); diff --git a/arch/arm/src/xmc4/xmc4_allocateheap.c b/arch/arm/src/xmc4/xmc4_allocateheap.c index 5ac8b0357ab..37ae505466a 100644 --- a/arch/arm/src/xmc4/xmc4_allocateheap.c +++ b/arch/arm/src/xmc4/xmc4_allocateheap.c @@ -111,7 +111,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2); @@ -125,7 +125,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size) /* Allow user-mode access to the user heap memory */ - xmc4_mpu_uheap(ubase, usize); + xmc4_mpu_uheap((uintptr_t)ubase, usize); #else /* Return the heap settings */ @@ -165,7 +165,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size) * is aligned to the MPU requirement. */ - log2 = (int)mpu_log2regionfloor(ubase, usize); + log2 = (int)mpu_log2regionfloor(usize); DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0); usize = (1 << log2);