Skip to content

Commit 5d2527b

Browse files
committed
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 e15ff78 commit 5d2527b

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ SECTIONS
250250
__rodata_region_end = .;
251251
__rom_region_end = .;
252252
MPU_ALIGN(__rodata_region_end - __rom_region_start);
253-
_image_rom_end_order = (LOG2CEIL(__rom_region_end) - 1) << 1;
253+
__rom_region_mpu_size_bits = (LOG2CEIL(__rodata_region_end - __rom_region_start) - 1) << 1;
254254

255255
GROUP_END(ROMABLE_REGION)
256256

0 commit comments

Comments
 (0)