arch/: Fix an error found in build testing. The protoype of mpu_log2regionfloor() changed; an additional parameter was added. However, none of the calls to mpu_log2regionfloor() were updated to pass the new, additional parameter.

This commit is contained in:
Gregory Nutt 2018-08-24 16:40:37 -06:00
parent 3931eaf015
commit e8270defc9
12 changed files with 36 additions and 36 deletions

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
kinetis_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
lc823450_mpu_uheap(ubase, usize);
#else
/* Return the heap settings */
@ -203,7 +203,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size)
* is aligned to the MPU requirement.
*/
log2 = (int)mpu_log2regionfloor(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
lpc17_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
lpc43_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
sam_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
sam_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -579,7 +579,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
* is aligned to the MPU requirement.
*/
log2 = (int)mpu_log2regionfloor(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);
@ -597,7 +597,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((uintptr_t)ubase, usize);
stm32_mpu_uheap(ubase, usize);
#else
/* Return the heap settings */
@ -641,7 +641,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size)
* is aligned to the MPU requirement.
*/
log2 = (int)mpu_log2regionfloor(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
stm32_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
stm32_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((SRAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
stm32l4_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((SRAM1_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
tiva_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);

View File

@ -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(usize);
log2 = (int)mpu_log2regionfloor(ubase, 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((uintptr_t)ubase, usize);
xmc4_mpu_uheap(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(usize);
log2 = (int)mpu_log2regionfloor(ubase, usize);
DEBUGASSERT((CONFIG_RAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);