Skip to content

Commit 8e97721

Browse files
ibirnbaumkartben
authored andcommitted
arch: arm: cortex_a_r: update ROM region size calculation
update the directive that calculates the ROM region size bit mask for the MPU setup. Signed-off-by: Immo Birnbaum <[email protected]>
1 parent eff4ed0 commit 8e97721

File tree

1 file changed

+1
-0
lines changed
  • include/zephyr/arch/arm/cortex_a_r/scripts

1 file changed

+1
-0
lines changed

include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ SECTIONS
240240
__rom_region_end = .;
241241
MPU_ALIGN(__rodata_region_end - __rom_region_start);
242242
_image_rom_end_order = (LOG2CEIL(__rom_region_end) - 1) << 1;
243+
__rom_region_mpu_size_bits = (LOG2CEIL(__rodata_region_end - __rom_region_start) - 1) << 1;
243244

244245
GROUP_END(ROMABLE_REGION)
245246

0 commit comments

Comments
 (0)