arc: arm: fix support for MPUs on non-XIP systems
The size of the ROM region is now rounded up to the nearest power of two; we no longer assume that RAM is in a different part of memory. Fixes: #15558 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
ecf2784fe7
commit
ff1952cc44
2 changed files with 3 additions and 1 deletions
|
@ -51,6 +51,7 @@
|
|||
#endif
|
||||
#else
|
||||
#define MPU_MIN_SIZE_ALIGN
|
||||
#define MPU_ALIGN(region_size) . = ALIGN(4)
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_XIP)
|
||||
|
@ -128,7 +129,7 @@ SECTIONS {
|
|||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
_image_rodata_end = .;
|
||||
MPU_MIN_SIZE_ALIGN
|
||||
MPU_ALIGN(_image_rodata_end - _image_rom_start);
|
||||
_image_rom_end = .;
|
||||
_image_rom_size = _image_rom_end - _image_rom_start;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue