<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3315.2870" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks to Chris & Joel Sherril for
the _TOD problem solution .<BR> <BR>Now, in this side, all
works fine.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Unfortunally we verify another
problem:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>In particular system stress condition (a lot
of traffic on Ethernet interface, a lot of qspi interrupts etc.... in our
motorola 5272 target) <BR>all the rtems services related to system timer
randomly hangs ! <BR>We found that, in function
_Watchdog_Tickle (file watchdogtickle.c),<BR>the variable
the_watchdog->delta_interval is decremented without any control.<BR>We
verified that the system hangs because this variable is decremented when
is zero, and obviously, <BR>after decrementing it , the new value is the biggest
long value.<BR>For the particular rtems sw structure, all the elements
list following this, will be checked<BR>only after the timer
corrupted will be expired causing system hang (with the exception of the rtems
service not related with timers<BR>that continue to work
fine). <BR> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>We was not be able to find the cause of this
problem but we verified that if we modified the code in
<BR>_Watchdog_Tickle as</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> if
(the_watchdog->delta_interval)<BR>
the_watchdog->delta_interval--;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>all works fine.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>We suppose that the problem is related to interrupt
concurrence: one interrupt nested in tick interrupt routine that break
the code of </FONT></DIV>
<DIV><FONT face=Arial size=2>watchdogtickle. </FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>We think that the problem is critical and the patch
poposed is not a good solution. </FONT></DIV></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can anyone confirm similar critical
problem?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR>Thanks in advance</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><BR> Fabrizio Pirovano</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> THYSYS s.r.l.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> Milan
Italy</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:pirovano.thysys@tiscalinet.it">pirovano.thysys@tiscalinet.it</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV></BODY></HTML>