<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 8:48 AM Schweikhardt, Jens (TSPCE3-TL4) <<a href="mailto:Jens.Schweikhardt@tesat.de">Jens.Schweikhardt@tesat.de</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 class="gmail-m_-3882546552984953242WordSection1">
<p class="MsoNormal"><span lang="DE">Hello, world\n<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="DE"><u></u> <u></u></span></p>
<p class="MsoNormal">I have a question about the use of trap 4 by RTEMS on Sparc32 (leon3).<u></u><u></u></p>
<p class="MsoNormal">Since our app needs FP, we set the PSR[EF] bit during the boot process before RTEMS is invoked.<u></u><u></u></p>
<p class="MsoNormal">Since we don’t expect the fp_disabled trap (4) to occur, we install a fatal handler for it with<u></u><u></u></p>
<p class="MsoNormal">rtems_interrupt_catch(&fatalTrapHandler, 4, &old);<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">However, the fatalTrapHandler is invoked a short time after application start (we use the Init() task<u></u><u></u></p>
<p class="MsoNormal">and start a handful of additional tasks, all of which have attribute RTEMS_FLOATING_POINT)<u></u><u></u></p>
<p class="MsoNormal">and the PSR[EF] bit is indeed cleared. None of our tasks<u></u><u></u></p>
<p class="MsoNormal">clears that bit, so we suspect RTEMS does it for some reason.</p></div></div></blockquote><div><br></div><div>Is the Init task floating point? What thread is executing when the trap occurs?</div><div><br></div><div>The IDLE thread is likely integer only if you are looking at it is running.</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 lang="EN-US"><div class="gmail-m_-3882546552984953242WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Question: is an RTEMS/sparc application allowed to install a handler for trap 4? I could not find an<u></u><u></u></p>
<p class="MsoNormal">answer in the docs for SPARC Specific Information.</p></div></div></blockquote><div><br></div><div>I think that's OK.  </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 class="gmail-m_-3882546552984953242WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for any insight!<br>
Regards, Jens<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1"><br>
Tesat-Spacecom GmbH & Co. KG<br>
Sitz: Backnang; Registergericht: Amtsgericht Stuttgart HRA 270977<br>
Persoenlich haftender Gesellschafter: Tesat-Spacecom Geschaeftsfuehrungs GmbH;<br>
Sitz: Backnang; Registergericht: Amtsgericht Stuttgart HRB 271658;<br>
Geschaeftsfuehrung: Dr. Marc Steckling, Kerstin Basche, Ralf Zimmermann<br>
</font><br>
<img src="https://www.tesat.de/images/footer.jpg" width="680" height="194" alt="banner">
</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>