From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15130 invoked by alias); 3 Aug 2005 01:40:27 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 15041 invoked by uid 22791); 3 Aug 2005 01:40:17 -0000 Received: from relay1.es.uci.edu (HELO relay1.es.uci.edu) (128.200.73.41) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 03 Aug 2005 01:40:16 +0000 Received: from webmail.uci.edu (a07.es.uci.edu [128.200.80.157]) by relay1.es.uci.edu (8.12.11/8.12.11) with ESMTP id j731eBUX021153 for ; Tue, 2 Aug 2005 18:40:12 -0700 Received: from pix-irva-inet1ext.broadcom.com ([63.87.1.243]) (SquirrelMail authenticated user mkhoyila) by webmail.uci.edu with HTTP; Tue, 2 Aug 2005 18:42:44 -0700 (PDT) Message-ID: <17136.63.87.1.243.1123033364.squirrel@webmail.uci.edu> Date: Wed, 03 Aug 2005 01:40:00 -0000 From: mkhoyila@uci.edu To: ecos-discuss@sources.redhat.com User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-NACS_ES-MailScanner: No viruses found X-MailScanner-From: mkhoyila@uci.edu Subject: [ECOS] Send function segment buf address is invalid X-SW-Source: 2005-08/txt/msg00027.txt.bz2 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