From: "Jantira Hengmeechai (Tai)" <Hengmeej@linsys.ca>
To: "Martin, Tim" <tim.martin@viasat.com>, linuxppc-embedded@ozlabs.org
Subject: RE: UartLite for MontaVista - virtex4
Date: Wed, 14 Mar 2007 15:28:24 -0600 [thread overview]
Message-ID: <WorldClient-F200703141528.AA28240029@linsys.ca> (raw)
In-Reply-To: <821B2170E9E7F04FA38DF7EC21DE48710862C816@VCAEXCH01.hq.corp.viasat.com>
[-- Attachment #1: Type: text/plain, Size: 1759 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 3148 bytes --]
next prev parent reply other threads:[~2007-03-14 20:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-13 21:28 UartLite for MontaVista - virtex4 Jantira Hengmeechai (Tai)
2007-03-14 18:12 ` Martin, Tim
2007-03-14 21:28 ` Jantira Hengmeechai (Tai) [this message]
2007-03-14 21:29 ` Martin, Tim
2007-03-15 9:46 ` Andrei Konovalov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=WorldClient-F200703141528.AA28240029@linsys.ca \
--to=hengmeej@linsys.ca \
--cc=linuxppc-embedded@ozlabs.org \
--cc=tim.martin@viasat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.