soc: fvp_aemv8r_aarch32: fix MPU region gap for nocache

When CONFIG_NOCACHE_MEMORY=y, the .nocache section is placed in between
__rodata_region_end and _app_smem_start/__kernel_ram_start. Make sure
this region is covered by the MPU background region so that the static
region for nocache is configured correctly.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
Manuel Argüelles 2023-03-18 00:00:00 +00:00 committed by Carles Cufí
commit 35e1f3564d

View file

@ -28,11 +28,7 @@ static const struct arm_mpu_region mpu_regions[] = {
/* Region 3 zephyr data */
MPU_REGION_ENTRY("SRAM_2",
#ifdef CONFIG_USERSPACE
(uintptr_t)_app_smem_start,
#else
(uintptr_t)__kernel_ram_start,
#endif
(uintptr_t)__rom_region_end,
REGION_RAM_ATTR((uintptr_t)__kernel_ram_end)),
/* Region 4 device region */