fxp unaligned access

Fred Clift fclift at verio.net
Thu Apr 24 11:29:03 PDT 2003


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 at verio.net -- Remember: If brute
force doesn't work, you're just not using enough.



More information about the freebsd-alpha mailing list