From: mkhoyila@uci.edu
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Send function segment buf address is invalid
Date: Wed, 03 Aug 2005 01:40:00 -0000 [thread overview]
Message-ID: <17136.63.87.1.243.1123033364.squirrel@webmail.uci.edu> (raw)
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
reply other threads:[~2005-08-03 1:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=17136.63.87.1.243.1123033364.squirrel@webmail.uci.edu \
--to=mkhoyila@uci.edu \
--cc=ecos-discuss@sources.redhat.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 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).