Skip to content

Commit

Permalink
soc: fvp_aemv8r_aarch32: fix MPU region gap for nocache
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
manuargue committed Mar 28, 2023
1 parent bbf3756 commit a9539cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions soc/arm/arm/fvp_aemv8r_aarch32/arm_mpu_regions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit a9539cf

Please sign in to comment.