>       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

Reply via email to