From owner-freebsd-alpha@FreeBSD.ORG Thu Apr 24 15:22:25 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 ADE7937B401 for ; Thu, 24 Apr 2003 15:22:25 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 547E443F3F for ; Thu, 24 Apr 2003 15:22:25 -0700 (PDT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id 341C72ED407; Thu, 24 Apr 2003 15:22:25 -0700 (PDT) Date: Fri, 25 Apr 2003 00:22:25 +0200 From: Maxime Henrion To: Fred Clift Message-ID: <20030424222225.GM21011@elvis.mu.org> References: <16040.5549.738597.905251@grasshopper.cs.duke.edu> <20030424105822.X68784-100000@vespa.dmz.orem.verio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030424105822.X68784-100000@vespa.dmz.orem.verio.net> User-Agent: Mutt/1.4.1i 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 22:22:26 -0000 Fred Clift wrote: > 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, Can you, in gdb, go to the fxp_add_rfabuf() frame (use the frame # command) and try this : p sc p rfa Cheers, Maxime