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:
Nikodem Kastelik 2024-05-29 14:26:29 +02:00 committed by Fabio Baltieri
commit 12142f72ec

View file

@ -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);