fxp unaligned access

Maxime Henrion mux at freebsd.org
Thu Apr 24 15:22:26 PDT 2003


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


More information about the freebsd-alpha mailing list