summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-03-12 08:00:53 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-03-12 08:00:53 -0600
commit450e66dd24099163bffbeefe9a17c6fc5fd1fa46 (patch)
tree92ee33637285e1adcbbae41b94b36b942d85567d /nuttx
parentdeaad84fc5d1d2009a8d1e969408e7ae1de8f829 (diff)
downloadpx4-nuttx-450e66dd24099163bffbeefe9a17c6fc5fd1fa46.tar.gz
px4-nuttx-450e66dd24099163bffbeefe9a17c6fc5fd1fa46.tar.bz2
px4-nuttx-450e66dd24099163bffbeefe9a17c6fc5fd1fa46.zip
ARMv7-M MPU. Bad syntax will cause failure to write the correct value to the MPU_RASR register. From Juha Niskanen
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/arch/arm/src/armv7-m/mpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/armv7-m/mpu.h b/nuttx/arch/arm/src/armv7-m/mpu.h
index f6b61816b..a48be1f90 100644
--- a/nuttx/arch/arm/src/armv7-m/mpu.h
+++ b/nuttx/arch/arm/src/armv7-m/mpu.h
@@ -500,7 +500,7 @@ static inline void mpu_peripheral(uintptr_t base, size_t size)
l2size = mpu_log2regionceil(size);
subregions = mpu_subregion(base, size, l2size);
- /* The configure the region */
+ /* Then configure the region */
regval = MPU_RASR_ENABLE | /* Enable region */
MPU_RASR_SIZE_LOG2((uint32_t)l2size) | /* Region size */
@@ -508,7 +508,7 @@ static inline void mpu_peripheral(uintptr_t base, size_t size)
MPU_RASR_S | /* Shareable */
MPU_RASR_B | /* Bufferable */
MPU_RASR_AP_RWNO | /* P:RW U:None */
- MPU_RASR_XN | /* Instruction access disable */
+ MPU_RASR_XN; /* Instruction access disable */
putreg32(regval, MPU_RASR);
}