Skip to content

Commit

Permalink
arch: arm: cortex_a_r: update ROM region size calculation
Browse files Browse the repository at this point in the history
update the directive that calculates the ROM region size
bit mask for the MPU setup.

Signed-off-by: Immo Birnbaum <[email protected]>
  • Loading branch information
ibirnbaum committed Oct 7, 2024
1 parent 52254b3 commit 05443a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ SECTIONS
__rodata_region_end = .;
__rom_region_end = .;
MPU_ALIGN(__rodata_region_end - __rom_region_start);
_image_rom_end_order = (LOG2CEIL(__rom_region_end) - 1) << 1;
__rom_region_mpu_size_bits = (LOG2CEIL(__rodata_region_end - __rom_region_start) - 1) << 1;

GROUP_END(ROMABLE_REGION)

Expand Down

0 comments on commit 05443a3

Please sign in to comment.