<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>On 02/04/2020 16:44, Gedare Bloom wrote:<br>
</p>
<blockquote type="cite"
cite="mid:CAC82fA03+FJ6JBK7chJ0_aX=DoO4=tEyUFi04fQQ=4q2Zm5R3g@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">On Thu, Apr 2, 2020 at 12:15 AM Sebastian Huber
<a class="moz-txt-link-rfc2396E" href="mailto:sebastian.huber@embedded-brains.de" moz-do-not-send="true"><sebastian.huber@embedded-brains.de></a> wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre class="moz-quote-pre" wrap="">---
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)) : .;
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">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?</pre>
</blockquote>
This can wait, it is for the new STM32H7 BSP. It could be useful for
the other ARMv7-M BSPs as well.<br>
</body>
</html>