* [ECOS] Send function segment buf address is invalid
@ 2005-08-03 1:40 mkhoyila
0 siblings, 0 replies; only message in thread
From: mkhoyila @ 2005-08-03 1:40 UTC (permalink / raw)
To: ecos-discuss
Upon completing the eth0 initialization, eCos calls my send function. This
is partial code of my mips send function. memcpy fails because the address
of sg_list->buf passed is invalid. I checked it and it is
Hex: FFFF FFFF 8007 98D6
Can someone help me to see why such invalid address is passed. Thanks.
Michael
for (last_sg = &sg_list[sg_len]; sg_list < last_sg; sg_list++) {
cyg_uint8 *from_p;
int l;
from_p = (cyg_uint8 *)(sg_list->buf); //invalid address here
l = sg_list->len;
if (l > total_len)
l = total_len;
memcpy((unsigned char *)to_p, from_p, l);
to_p += l;
total_len -= l;
if (total_len < 0)
continue; // Should exit via sg_last normally
}
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-03 1:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-03 1:40 [ECOS] Send function segment buf address is invalid mkhoyila
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).