Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2003 12:33:24 -0600 (MDT)
From:      Fred Clift <fclift@verio.net>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        freebsd-alpha@freebsd.org
Subject:   re: fxp unaligned access 
Message-ID:  <20030424105822.X68784-100000@vespa.dmz.orem.verio.net>
In-Reply-To: <16040.5549.738597.905251@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030424105822.X68784-100000>