<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 3, 2021 at 10:04 AM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Rotem,<div><br></div><div>We have started to try to capture information to help make migration easier. See <a href="https://ftp.rtems.org/pub/rtems/releases/5/5.1/docs/html/user/migration/v4_11-to-v5.html" target="_blank">https://ftp.rtems.org/pub/rtems/releases/5/5.1/docs/html/user/migration/v4_11-to-v5.html</a> for the migration from 4.11 to 5. That may help you some.</div><div><br></div><div>In addition, the configuration options are documented at <a href="https://ftp.rtems.org/pub/rtems/releases/5/5.1/docs/html/c-user/config/index.html" target="_blank">https://ftp.rtems.org/pub/rtems/releases/5/5.1/docs/html/c-user/config/index.html</a></div><div><br></div><div>Usually, you should check your configuration when migrating and also look for deprecated/obsolete APIs in use. (And, if you broke the API visibility somehow, you may need to fix that on your end. Some users like to "peek under the sheets" to see what is going on in RTEMS source, and then make application code that is implementation-dependent. This is not recommended in general.)</div></div><div><br></div><div>In your specific case, you should check out <a href="https://ftp.rtems.org/pub/rtems/releases/5/5.1/docs/html/c-user/config/general.html#configure-unified-work-areas" target="_blank">https://ftp.rtems.org/pub/rtems/releases/5/5.1/docs/html/c-user/config/general.html#configure-unified-work-areas</a> maybe as a start</div><div><br></div><div>Gedare</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 3, 2021 at 5:21 AM Rotem Dror  MTH <<a href="mailto:rodror@iai.co.il" target="_blank">rodror@iai.co.il</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">Hello,<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">We have an old program (written in c language) running on RTEM 4.10
<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">we are trying to run this program with new environment – RTEM5 with gcc v10.2.0.  <u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">we also updated the linkcmds file according to linkcmds.base<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">we have done compellation and loading grmon3 successfully.<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">When we start to debug/run the program we get an error in file malloc_initialize.c, line 79: "INTERNAL ERROR NO MEMORY FOR HEAP"<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">We understand (from guide file named: c-user.pdf) that the problem should be because of configuration error.<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">Please let us know, where (or how) can we update this configuration? Or maybe this problem caused by a different cause?<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><u></u> </p></div></div></blockquote></div></div></blockquote><div><br></div><div>PS: your configuration options should be part of your application code. Whatever is not specified by you will be defaulted as documented.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div><p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">If we proceed and skip this error, we stopped on bus error according to file userextiterate.c line 192: iter.previous  pointed to 0x0 address.<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">Best Regards<u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="color:rgb(31,73,125)">Rotem</span><u></u><u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><u></u> <u></u></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><u></u> <u></u></p>
</div>

<br><pre><font color="blue">
*********************************************************************************************** Please consider the environment before printing this email ! The information contained in this communication is proprietary to Israel Aerospace Industries Ltd. and/or third parties, may contain confidential or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited. If you receive this communication in error, please notify the sender immediately and delete it from your computer. Thank you. Visit us at: <a href="http://www.iai.co.il" target="_blank">www.iai.co.il</a>

</font></pre><br>
</div>

_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div>
</blockquote></div></div>