<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi all,<br>
I'm not yet able to use FLOATING POINT coprocessor in my sparc
architecture.<br>
I configured my system.h by inserting<br>
<br>
<span style="color: rgb(0, 0, 0); font-family: sans-serif;
font-size: 13px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
19.1875px; orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline
!important; float: none;">#define<span
class="Apple-converted-space"> </span></span><code
style="font-family: monospace, Courier; background-color:
rgb(249, 249, 249); color: rgb(0, 0, 0); font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.1875px; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">CONFIGURE_INIT_TASK_ATTRIBUTES
RTEMS_FLOATING_POINT</code> <br>
<br>
but alway the same trap appears:<small><small><small><br>
<br>
<big>Unexpected trap(0 x4) ... fp disabled</big></small></small></small><br>
<br>
I don't want to use <small>-msoft-float</small> flag option
because I don't use<br>
it when I compile with BCC instead of RCC and it does work without
any problems.<br>
I don't know why rtems gives me this kind of problems.<br>
Can anyone suggest me something? <br>
Thanks a lot<br>
<br>
Luca<br>
<br>
Il 19/11/2013 18:24, Luca Cinquepalmi ha scritto:<br>
</div>
<blockquote cite="mid:528B9EE6.5010305@planetek.it" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hi all,<br>
I have the following problem.<br>
<br>
I've declared the following structure<br>
<br>
<small>struct str {<br>
int a;<br>
int b;<br>
float arr[2]<br>
}</small><br>
<br>
in my Init task I declared:<br>
<br>
<small>struct *str mystr;<br>
mystr = (str*)calloc(1, sizeof(*mystr)<br>
mystr -> a = 1;<br>
mystr -> b = 2;<br>
mystr -> arr[0] = 1.2;<br>
mystr -> arr[1] = 2.1;</small><br>
<br>
When i plot my value a trap error occours and no valu<br>
is plotted<br>
If my array is of int, all goes good.<br>
Is there a particular problem for float array in structures<br>
with RTEMS? thanks.<br>
<br>
Luca<br>
<br>
<br>
<br>
Il 19/11/2013 12:06, Sebastian Huber ha scritto:<br>
</div>
<blockquote cite="mid:528B4652.6080505@embedded-brains.de"
type="cite">On 2013-11-19 11:56, Leonard Bise wrote: <br>
<blockquote type="cite">Am I correct in thinking that this
section of the RTEMS doc : <br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://rtems.org/onlinedocs/doc-current/share/rtems/html/c_user/Multiprocessing-Manager.html#Multiprocessing-Manager">http://rtems.org/onlinedocs/doc-current/share/rtems/html/c_user/Multiprocessing-Manager.html#Multiprocessing-Manager</a>
<br>
<br>
Talks about what I want or is that something else entirely?
I'm a bit loss with <br>
your comment about multiprocessing support in RTEMS Sebastian.
<br>
</blockquote>
<br>
RTEMS_MULTIPROCESSING: <br>
<br>
Independent single-processor RTEMS instances share global
objects. State changes are exchanged by means of message
passing. <br>
<br>
RTEMS_SMP: <br>
<br>
One symmetric multi-processor RTEMS instance runs on multiple
processors. <br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>