From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from linsys.ca (205-200-74-130.static.mts.net [205.200.74.130]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id E94E0DDD0B for ; Thu, 15 Mar 2007 07:35:39 +1100 (EST) Received: from WorldClient by linsys.ca (MDaemon PRO v9.5.6) with ESMTP id md50000147933.msg for ; Wed, 14 Mar 2007 15:28:28 -0600 Date: Wed, 14 Mar 2007 15:28:24 -0600 From: "Jantira Hengmeechai (Tai)" To: "Martin, Tim" , linuxppc-embedded@ozlabs.org Subject: RE: UartLite for MontaVista - virtex4 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_0314-1528-24-PART-BREAK" Message-ID: In-Reply-To: <821B2170E9E7F04FA38DF7EC21DE48710862C816@VCAEXCH01.hq.corp.viasat.com> References: <821B2170E9E7F04FA38DF7EC21DE48710862C816@VCAEXCH01.hq.corp.viasat.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --_0314-1528-24-PART-BREAK Content-Type: text/plain; charset=us-ascii Hi Tim, Could you tell me where exactly to get the "xuartlite_serial.c" ? I could not find "xuartlite_serial.c" in the drivers folder generated by EDK . (\ppc405_0\libsrc\linux_mvl31_v1_01_b\linux\drivers\char\xilinx_uartlite) Look forward to hearing from you. Thanks, Tai -----Original Message----- From: "Martin, Tim" To: "Jantira Hengmeechai \(Tai\)" , Date: Wed, 14 Mar 2007 11:12:55 -0700 Subject: RE: UartLite for MontaVista - virtex4 > Xilinx OS Independent Code XAssert: xuartlite.c:195 > Code may crash due to unhandled errors. > Xilinx OS Independent Code XAssert: xuartlite.c:195 > Code may crash due to unhandled errors. > Xilinx OS Independent Code XAssert: xuartlite.c:195 > Code may crash due to unhandled errors. > Xilinx OS Independent Code XAssert: xuartlite.c:195 > Code may crash due to unhandled errors. This code is... unsigned int XUartLite_Send(XUartLite *InstancePtr, u8 *DataBufferPtr, unsigned int NumBytes) { unsigned int BytesSent; u32 StatusRegister; /* * Assert validates the input arguments */ XASSERT_NONVOID(InstancePtr != NULL); XASSERT_NONVOID(DataBufferPtr != NULL); XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY); XASSERT_NONVOID(((signed)NumBytes) >= 0); // Line 195 There's a patch against the file xuartlite_serial.c to fix a problem where a backlog of bytes causes NumBytes to be a negative number. Grab the latest xuartlite_serial.c file from your EDK distribution. Tim _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded --_0314-1528-24-PART-BREAK Content-Type: text/html; charset=us-ascii
Hi Tim,
 
Could you tell me where exactly to get the  "xuartlite_serial.c" ?
 
I could not find "xuartlite_serial.c" in the drivers folder generated by EDK .
(\ppc405_0\libsrc\linux_mvl31_v1_01_b\linux\drivers\char\xilinx_uartlite)
Look forward to hearing from you.
Thanks,
Tai
-----Original Message-----
From: "Martin, Tim" <tim.martin@viasat.com>
To: "Jantira Hengmeechai \(Tai\)" <Hengmeej@linsys.ca>, <linuxppc-embedded@ozlabs.org>
Date: Wed, 14 Mar 2007 11:12:55 -0700
Subject: RE: UartLite for MontaVista - virtex4

>   Xilinx OS Independent Code XAssert: xuartlite.c:195
>   Code may crash due to unhandled errors.
>   Xilinx OS Independent Code XAssert: xuartlite.c:195
>   Code may crash due to unhandled errors.
>   Xilinx OS Independent Code XAssert: xuartlite.c:195
>   Code may crash due to unhandled errors.
>   Xilinx OS Independent Code XAssert: xuartlite.c:195
>   Code may crash due to unhandled errors.

This code is...

unsigned int XUartLite_Send(XUartLite *InstancePtr, u8 *DataBufferPtr,
                            unsigned int NumBytes)
{
    unsigned int BytesSent;
    u32 StatusRegister;

    /*
     * Assert validates the input arguments
     */
    XASSERT_NONVOID(InstancePtr != NULL);
    XASSERT_NONVOID(DataBufferPtr != NULL);
    XASSERT_NONVOID(InstancePtr->IsReady == XCOMPONENT_IS_READY);
    XASSERT_NONVOID(((signed)NumBytes) >= 0); // Line 195

There's a patch against the file xuartlite_serial.c to fix a problem
where a backlog of bytes causes NumBytes to be a negative number.
Grab the latest xuartlite_serial.c file from your EDK distribution.

Tim
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
--_0314-1528-24-PART-BREAK--