<html><head><base href="x-msg://150/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">In your init.h, I think you have to add:<div>#include <rtems/confdefs.h> </div><div><br></div><div>after the #define CONFIGURE_INIT</div><div><br></div><div>see:</div><div><a href="http://rtems.org/onlinedocs/releases/rtemsdocs-4.8.1/share/rtems/html/c_user/c_user00403.html">http://rtems.org/onlinedocs/releases/rtemsdocs-4.8.1/share/rtems/html/c_user/c_user00403.html</a></div><div><br></div><div> </div><div><br><div><br><div><div>On Jun 30, 2011, at 6:05 AM, Óscar Álvarez Paredes wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="ES" link="blue" vlink="purple"><div class="WordSection1" style="page: WordSection1; "><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; ">Hi,<o:p></o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><o:p> </o:p></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">I have the following files in rtems 4.8.2.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">It compiles Ok, but when I run it on TSIM it gives the following error:<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">TSIM/LEON SPARC simulator, version 2.0.15 (professional version)<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Copyright (C) 2001, Gaisler Research - all rights reserved.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">For latest updates, go to<span class="Apple-converted-space"> </span><a href="http://www.gaisler.com/" style="color: blue; text-decoration: underline; ">http://www.gaisler.com/</a><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Comments or bug-reports to<span class="Apple-converted-space"> </span><a href="mailto:tsim@gaisler.com" style="color: blue; text-decoration: underline; ">tsim@gaisler.com</a><o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">serial port A on stdin/stdout<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">allocated 4096 K RAM memory, in 1 bank(s)<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">allocated 32 M SDRAM memory, in 1 bank<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">allocated 2048 K ROM memory<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">icache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">dcache: 1 * 4 kbytes, 16 bytes/line (4 kbytes total)<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">section: .text, addr: 0x40000000, size 95760 bytes<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">section: .data, addr: 0x40017610, size 3184 bytes<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">section: .jcr, addr: 0x40018280, size 4 bytes<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">read 639 symbols<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">tsim> go 0x40000000<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">resuming at 0x40000000<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Call to testRun ...<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Init<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Math test<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Unexpected trap ( 4) at address 0x40001584<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">fp disabled<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 35.4pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Program exited normally.<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">It seems as if the fp was no enabled at RTEMS level, but as you can see in the init.h file I have:<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; text-indent: 35.4pt; "><span lang="EN-US">#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Any idea why?<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Thanks,<o:p></o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US"><o:p> </o:p></span></div><div style="margin-top: 0cm; margin-right: 0cm; margin-bottom: 0.0001pt; margin-left: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-US">Oscar<o:p></o:p></span></div></div><div><font size="1" color="gray" face="Arial"><span style="font-size: 8pt; font-family: Arial; color: gray; "></span></font><br class="webkit-block-placeholder"></div><font size="1" color="gray" face="Arial"><hr size="2" width="100%" align="center">This message including any attachments may contain confidential information, according to our Information Security Management System, and intended solely for a specific individual to whom they are addressed. Any unauthorised copy, disclosure or distribution of this message is strictly forbidden. If you have received this transmission in error, please notify the sender immediately and delete it.</font><font size="1" color="gray" face="Arial"><span style="font-size: 8pt; font-family: Arial; color: gray; "><hr size="2" width="100%" align="center">Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede contener información clasificada por su emisor como confidencial en el marco de su Sistema de Gestión de Seguridad de la Información siendo para uso exclusivo del destinatario, quedando prohibida su divulgación copia o distribución a terceros sin la autorización expresa del remitente. Si Vd. ha recibido este mensaje erróneamente, se ruega lo notifique al remitente y proceda a su borrado.<span class="Apple-converted-space"> </span></span></font><font size="1" color="gray" face="Arial"><span lang="EN-GB" style="font-size: 8pt; font-family: Arial; color: gray; ">Gracias por su colaboración.<o:p></o:p></span></font><font size="1" color="gray" face="Arial"><span style="font-size: 8pt; font-family: Arial; color: gray; "><hr size="2" width="100%" align="center">Esta mensagem, incluindo qualquer ficheiro anexo, pode conter informação confidencial, de acordo com nosso Sistema de Gestão de Segurança da Informação, sendo para uso exclusivo do destinatário e estando proibida a sua divulgação, cópia ou distribuição a terceiros sem autorização expressa do remetente da mesma. Se recebeu esta mensagem por engano, por favor avise de imediato o remetente e apague-a.<span class="Apple-converted-space"> </span></span></font><font size="1" color="gray" face="Arial"><span lang="EN-GB" style="font-size: 8pt; font-family: Arial; color: gray; ">Obrigado pela sua colaboração.<o:p></o:p></span></font><hr size="2" width="100%" align="center"><div><br class="webkit-block-placeholder"></div><span><init.c></span><span><test.c></span><span><test.h></span><span><init.h></span>_______________________________________________<br>rtems-users mailing list<br><a href="mailto:rtems-users@rtems.org" style="color: blue; text-decoration: underline; ">rtems-users@rtems.org</a><br><a href="http://www.rtems.org/mailman/listinfo/rtems-users" style="color: blue; text-decoration: underline; ">http://www.rtems.org/mailman/listinfo/rtems-users</a><br></div></blockquote></div><br></div></div></body></html>