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;
|
||||
#endif
|
||||
default:
|
||||
/* Either the specified `ATTR_MPU_*` attribute does not
|
||||
* exists or the `REGION_*_ATTR` macro is not defined
|
||||
* for that attribute.
|
||||
/* Attribute other than ARM-specific is set.
|
||||
* This region should not be configured in MPU.
|
||||
*/
|
||||
LOG_ERR("Invalid attribute for the region\n");
|
||||
return -EINVAL;
|
||||
continue;
|
||||
}
|
||||
#if defined(CONFIG_ARMV7_R)
|
||||
region_conf.size = size_to_mpu_rasr_size(region[idx].dt_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue