<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 30, 2021 at 2:07 PM Dave DeGroote <<a href="mailto:Dave.DeGroote@astrobotic.com">Dave.DeGroote@astrobotic.com</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 id="gmail-m_3300640327971901434divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p><span style="font-size:12pt">Hello,</span></p>
<p><span style="font-size:12pt">I'm trying to get RTEMS running using SMP on a Leon3/gr712rc (2 cores). I have it partially running, but it crashes intermittently on printf's.  Can anyone tell me if there's a way to make printf() SMP safe?  printf appears
 to use termios which uses rtems_mutex_init() and rtems_binary_semaphore_init() which I don't think are SMP safe (but I'm also new to this so I'm not sure).</span></p></div></div></blockquote><div><br></div><div>Those are SMP safe. I suspect you are using the Classic API (e.g. rtems_task_) and by default they do not have floating point enabled. You probably just need to enable the floating point attribute on the task create calls (or for the init task).</div><div><br></div><div><a href="https://docs.rtems.org/branches/master/c-user/task/directives.html#rtems-task-create">https://docs.rtems.org/branches/master/c-user/task/directives.html#rtems-task-create</a></div><div><br></div><div>See configuring a system chapter for the init task setting.</div><div><br></div><div>If you provide the exception, we would know for sure.</div><div><br></div><div>--joel </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 id="gmail-m_3300640327971901434divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr"><p><br>
</p>
<p><span style="font-size:12pt">Thanks!</span></p>
<div id="gmail-m_3300640327971901434Signature">
<div id="gmail-m_3300640327971901434divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p></p>
<table border="0" cellpadding="0" cellspacing="0" width="460" style="font-family:Arial,sans-serif;font-size:12px;margin-top:50px">
<tbody>
<tr colspan="2">
<td width="175"><img alt="Astrobotic Logo" height="115" width="160" src="https://c-leveled.com/astrobotic_sig2/astrobotic_logo.png"></td>
<td><strong style="color:rgb(226,39,38);font-size:14px;display:inline-block;margin-bottom:3px">Dave DeGroote</strong><br>
<p style="margin-right:0px;margin-bottom:3px;margin-left:0px">Flight Software Engineer</p>
<p style="margin-right:0px;margin-bottom:10px;margin-left:0px"><strong>Astrobotic</strong></p>
<p style="margin-right:0px;margin-bottom:3px;margin-left:0px">1016 N. Lincoln Avenue  |  Pittsburgh, PA 15233</p>
<p style="margin-right:0px;margin-bottom:3px;margin-left:0px">office: 412.682.3282</p>
</td>
</tr>
</tbody>
</table>
<br>
<p></p>
<p></p>
</div>
</div>
<br>
<div style="color:rgb(0,0,0)">
<div>
<div><br>
</div>
</div>
</div>
</div>


<br><br><p style="font-family:Verdana;font-size:10pt;color:rgb(102,102,102)"><b>Disclaimer</b></p><p style="font-family:Verdana;font-size:8pt;color:rgb(102,102,102)">The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.<br></p></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>