From owner-freebsd-alpha@FreeBSD.ORG Thu Apr 24 11:29:03 2003 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5653137B401 for ; Thu, 24 Apr 2003 11:29:03 -0700 (PDT) Received: from gatekeeper.oremut01.us.wh.verio.net (gatekeeper.oremut01.us.wh.verio.net [198.65.168.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C793A43F75 for ; Thu, 24 Apr 2003 11:29:02 -0700 (PDT) (envelope-from fclift@verio.net) Received: from mx.dmz.orem.verio.net (mx.dmz.orem.verio.net [10.1.1.10]) 771B83BF88B for ; Thu, 24 Apr 2003 12:29:02 -0600 (MDT) Received: from vespa.dmz.orem.verio.net (vespa.dmz.orem.verio.net [10.1.1.59]) by mx.dmz.orem.verio.net (8.11.6p2/8.11.6) with ESMTP id h3OIT1F13554; Thu, 24 Apr 2003 12:29:02 -0600 (MDT) Date: Thu, 24 Apr 2003 12:33:24 -0600 (MDT) From: Fred Clift X-X-Sender: To: Andrew Gallatin In-Reply-To: <16040.5549.738597.905251@grasshopper.cs.duke.edu> Message-ID: <20030424105822.X68784-100000@vespa.dmz.orem.verio.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-alpha@freebsd.org Subject: re: fxp unaligned access X-BeenThere: freebsd-alpha@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Alpha List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2003 18:29:03 -0000 On Thu, 24 Apr 2003, Andrew Gallatin wrote: > run gdb on the kernel.debug matching your booted kernel and say > > (gdb) l *fxp_add_rfabuf+0x80 line 2191 2186 * Get a pointer to the base of the mbuf cluster and move 2187 * data start past it. 2188 */ 2189 rfa = mtod(m, struct fxp_rfa *); 2190 m->m_data += sc->rfa_size; 2191 rfa->size = htole16(MCLBYTES - sc->rfa_size - RFA_ALIGNMENT_FUDGE); 2192 2193 /* 2194 * Initialize the rest of the RFA. Note that since the RFA 2195 * is misaligned, we cannot store values directly. Instead, so, it looks like the code is _trying_ to do the right thing... Fred -- Fred Clift - fclift@verio.net -- Remember: If brute force doesn't work, you're just not using enough.