<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6487.1">
<TITLE>Infinite while loop in ppc4xx/spd_sdram.c?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Long time list reader, first time question here.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I'm reading over CVS Revision 1.6 of u-boot/u-boot/cpu/ppc4xx/spd_sdram.c and I have a question.&nbsp; Way down at almost the bottom of the function program_tr1() about where the rdclt_average is being calculated, there's a while loop that seems curious to me:</FONT></P>

<P><FONT FACE="Times New Roman">rdclt_average = ((max_start + max_end) &gt;&gt; 1); </FONT>

<BR><B><FONT COLOR="#FF00FF" FACE="Times New Roman">if</FONT></B><FONT FACE="Times New Roman"> (rdclt_average &gt;= 0x60)</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B> <FONT COLOR="#FF00FF" FACE="Times New Roman">while</FONT></B><FONT FACE="Times New Roman">(1); </FONT>
</P>

<P><FONT FACE="Times New Roman">Does anyone know the reason for this, why 0x60 and why a seemingly silent hang?</FONT>

<BR><FONT FACE="Times New Roman">Thanks.</FONT>

<BR><FONT FACE="Times New Roman">Joe</FONT>
</P>

</BODY>
</HTML>