arch: arm: improve inline comment in _arm_mpu_config/enable
In _arm_mpu_config provide a more detailed description of the effect of MPU PRIVDEFENA flag when enabling the ARM MPU. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
7b56b448f6
commit
dbede45dbe
1 changed files with 6 additions and 2 deletions
|
@ -249,7 +249,9 @@ static inline int _is_user_accessible_region(u32_t r_index, int write)
|
|||
void arm_core_mpu_enable(void)
|
||||
{
|
||||
if (arm_mpu_enabled == 0) {
|
||||
/* Enable MPU */
|
||||
/* Enable MPU and use the default memory map as a
|
||||
* background region for privileged software access.
|
||||
*/
|
||||
ARM_MPU_DEV->ctrl = ARM_MPU_ENABLE | ARM_MPU_PRIVDEFENA;
|
||||
|
||||
arm_mpu_enabled = 1;
|
||||
|
@ -481,7 +483,9 @@ static void _arm_mpu_config(void)
|
|||
mpu_config.mpu_regions[r_index].attr);
|
||||
}
|
||||
|
||||
/* Enable MPU */
|
||||
/* Enable MPU and use the default memory map as a
|
||||
* background region for privileged software access.
|
||||
*/
|
||||
ARM_MPU_DEV->ctrl = ARM_MPU_ENABLE | ARM_MPU_PRIVDEFENA;
|
||||
|
||||
arm_mpu_enabled = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue