[PATCH] bsps/arm: Add support for MPU region alignment
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Apr 2 14:46:23 UTC 2020
On 02/04/2020 16:44, Gedare Bloom wrote:
> On Thu, Apr 2, 2020 at 12:15 AM Sebastian Huber
> <sebastian.huber at embedded-brains.de> wrote:
>> ---
>> bsps/arm/shared/start/linkcmds.base | 21 +++++++++++++++++++++
>> 1 file changed, 21 insertions(+)
>>
>> diff --git a/bsps/arm/shared/start/linkcmds.base b/bsps/arm/shared/start/linkcmds.base
>> index 1f5f1ef959..d0663cf97e 100644
>> --- a/bsps/arm/shared/start/linkcmds.base
>> +++ b/bsps/arm/shared/start/linkcmds.base
>> @@ -81,6 +81,17 @@ SECTIONS {
>> } > REGION_TEXT AT > REGION_TEXT_LOAD
>> .fini : ALIGN_WITH_INPUT {
>> KEEP (*(.fini))
>> +
>> + /*
>> + * If requested, align the size of the combined start and text
>> + * section to the next power of two to meet MPU region
>> + * alignment requirements.
>> + */
>> + . = DEFINED (bsp_section_do_mpu_align) ?
>> + bsp_section_start_begin
>> + + ALIGN (. - bsp_section_start_begin,
>> + 1 << LOG2CEIL (. - bsp_section_start_begin)) : .;
> This looks alright. I don't find the symbol bsp_section_do_mpu_align
> anywhere though, is it currently unused?
>
> Do you need this in 5.1.0 for something?
This can wait, it is for the new STM32H7 BSP. It could be useful for the
other ARMv7-M BSPs as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200402/6871a856/attachment.html>
More information about the devel
mailing list