arch: arm: core: mpu: allow non-ARM memory attributes
Memory region defined in devicetree can have attributes that are not intended to be parsed by MPU library, but might be valid for other components. Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
This commit is contained in:
parent
d9e2b0c707
commit
12142f72ec
1 changed files with 3 additions and 5 deletions
|
@ -130,12 +130,10 @@ static int mpu_configure_regions_from_dt(uint8_t *reg_index)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
/* Either the specified `ATTR_MPU_*` attribute does not
|
/* Attribute other than ARM-specific is set.
|
||||||
* exists or the `REGION_*_ATTR` macro is not defined
|
* This region should not be configured in MPU.
|
||||||
* for that attribute.
|
|
||||||
*/
|
*/
|
||||||
LOG_ERR("Invalid attribute for the region\n");
|
continue;
|
||||||
return -EINVAL;
|
|
||||||
}
|
}
|
||||||
#if defined(CONFIG_ARMV7_R)
|
#if defined(CONFIG_ARMV7_R)
|
||||||
region_conf.size = size_to_mpu_rasr_size(region[idx].dt_size);
|
region_conf.size = size_to_mpu_rasr_size(region[idx].dt_size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue