summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/sam3u
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-12 17:50:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-12 17:50:59 +0000
commiteb1679e6fac9aa613baf90f285ef3e5e5413ea18 (patch)
treeb9f69b868329c2e8d196a76f18025e9fd93adfd9 /nuttx/arch/arm/src/sam3u
parent774fdc43f3bea13b7852d82536ff96ccbb7ebf03 (diff)
downloadpx4-nuttx-eb1679e6fac9aa613baf90f285ef3e5e5413ea18.tar.gz
px4-nuttx-eb1679e6fac9aa613baf90f285ef3e5e5413ea18.tar.bz2
px4-nuttx-eb1679e6fac9aa613baf90f285ef3e5e5413ea18.zip
More updates to MPU control logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5735 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/sam3u')
-rw-r--r--nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c b/nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c
index 8f269491e..0c122aeae 100644
--- a/nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c
+++ b/nuttx/arch/arm/src/sam3u/sam3u_allocateheap.c
@@ -122,7 +122,7 @@ void up_allocate_heap(FAR void **heap_start, size_t *heap_size)
* is aligned to the MPU requirement.
*/
- log2 = (int)mpu_log2regionsize(usize);
+ log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);
@@ -173,7 +173,7 @@ void up_allocate_kheap(FAR void **heap_start, size_t *heap_size)
* is aligned to the MPU requirement.
*/
- log2 = (int)mpu_log2regionsize(usize);
+ log2 = (int)mpu_log2regionfloor(usize);
DEBUGASSERT((CONFIG_DRAM_END & ((1 << log2) - 1)) == 0);
usize = (1 << log2);