<HTML>
<HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> 
<STYLE title="table borders">.htmtableborders, .htmtableborders td, 
.htmtableborders th {border : 1px dashed lightgrey ! important;}  </STYLE>  
<STYLE type=text/css>html, body { border: 0px; }  span.macro, span.macro ul, 
span.macro div, span.macro p {background : #CCCCCC;} </STYLE>  <STYLE 
type=text/css> p{margin-bottom: 0.15em;margin-top: 
0.15em;}body{font-family:;font-size:10pt;}; </STYLE> </HEAD> <BODY> <DIV>Hi 
Tim,</DIV> <DIV>&nbsp;</DIV> <DIV>Could you tell me&nbsp;where 
exactly&nbsp;to get&nbsp;the &nbsp;"xuartlite_serial.c" ?</DIV> <DIV>
&nbsp;</DIV> <DIV>I could not find "xuartlite_serial.c" in the drivers 
folder generated by EDK .</DIV> <DIV>
(\ppc405_0\libsrc\linux_mvl31_v1_01_b\linux\drivers\char\xilinx_uartlite)<BR>
</DIV> <DIV>Look forward to hearing from you.</DIV> <DIV>Thanks,</DIV> <DIV>
Tai</DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; 
MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
-----Original Message-----<BR>From: "Martin, Tim" 
&lt;tim.martin@viasat.com&gt;<BR>To: "Jantira Hengmeechai \(Tai\)" 
&lt;Hengmeej@linsys.ca&gt;, &lt;linuxppc-embedded@ozlabs.org&gt;<BR>Date: 
Wed, 14 Mar 2007 11:12:55 -0700<BR>Subject: RE: UartLite for MontaVista - 
virtex4<BR><BR> <DIV style="FONT-FAMILY: monospace, courier new, courier">
&gt;&nbsp; &nbsp;Xilinx OS Independent Code XAssert: xuartlite.c:195<BR>
&gt;&nbsp; &nbsp;Code may crash due to unhandled errors.<BR>&gt;&nbsp; 
&nbsp;Xilinx OS Independent Code XAssert: xuartlite.c:195<BR>&gt;&nbsp; 
&nbsp;Code may crash due to unhandled errors.<BR>&gt;&nbsp; &nbsp;Xilinx OS 
Independent Code XAssert: xuartlite.c:195<BR>&gt;&nbsp; &nbsp;Code may crash 
due to unhandled errors.<BR>&gt;&nbsp; &nbsp;Xilinx OS Independent Code 
XAssert: xuartlite.c:195<BR>&gt;&nbsp; &nbsp;Code may crash due to unhandled 
errors.<BR><BR>This code is...<BR><BR>unsigned int XUartLite_Send(XUartLite 
*InstancePtr, u8 *DataBufferPtr,<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unsigned int 
NumBytes)<BR>{<BR>&nbsp; &nbsp; unsigned int BytesSent;<BR>&nbsp; &nbsp; u32 
StatusRegister;<BR><BR>&nbsp; &nbsp; /*<BR>&nbsp; &nbsp; &nbsp;* Assert 
validates the input arguments<BR>&nbsp; &nbsp; &nbsp;*/<BR>&nbsp; &nbsp; 
XASSERT_NONVOID(InstancePtr != NULL);<BR>&nbsp; &nbsp; 
XASSERT_NONVOID(DataBufferPtr != NULL);<BR>&nbsp; &nbsp; 
XASSERT_NONVOID(InstancePtr-&gt;IsReady == XCOMPONENT_IS_READY);<BR>&nbsp; 
&nbsp; XASSERT_NONVOID(((signed)NumBytes) &gt;= 0); // Line 195<BR><BR>
There's a patch against the file xuartlite_serial.c to fix a problem<BR>
where a backlog of bytes causes NumBytes to be a negative number.<BR>Grab 
the latest xuartlite_serial.c file from your EDK distribution.<BR><BR>Tim<BR>
_______________________________________________<BR>Linuxppc-embedded mailing 
list<BR>Linuxppc-embedded@ozlabs.org<BR><A 
href="https://ozlabs.org/mailman/listinfo/linuxppc-embedded" target=_blank>
https://ozlabs.org/mailman/listinfo/linuxppc-embedded</A><BR></DIV>
</BLOCKQUOTE></BODY>
</HTML>