<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> </DIV> <DIV>Could you tell me where
exactly to get the "xuartlite_serial.c" ?</DIV> <DIV>
</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"
<tim.martin@viasat.com><BR>To: "Jantira Hengmeechai \(Tai\)"
<Hengmeej@linsys.ca>, <linuxppc-embedded@ozlabs.org><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">
> Xilinx OS Independent Code XAssert: xuartlite.c:195<BR>
> Code may crash due to unhandled errors.<BR>>
Xilinx OS Independent Code XAssert: xuartlite.c:195<BR>>
Code may crash due to unhandled errors.<BR>> Xilinx OS
Independent Code XAssert: xuartlite.c:195<BR>> Code may crash
due to unhandled errors.<BR>> Xilinx OS Independent Code
XAssert: xuartlite.c:195<BR>> Code may crash due to unhandled
errors.<BR><BR>This code is...<BR><BR>unsigned int XUartLite_Send(XUartLite
*InstancePtr, u8 *DataBufferPtr,<BR>
unsigned int
NumBytes)<BR>{<BR> unsigned int BytesSent;<BR> u32
StatusRegister;<BR><BR> /*<BR> * Assert
validates the input arguments<BR> */<BR>
XASSERT_NONVOID(InstancePtr != NULL);<BR>
XASSERT_NONVOID(DataBufferPtr != NULL);<BR>
XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);<BR>
XASSERT_NONVOID(((signed)NumBytes) >= 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>