[U-Boot] Warning NetReceive(): Make sure packet buffers start on an even address

Wolfgang Denk wd at denx.de
Fri Aug 6 16:48:41 CEST 2010


Dear "Reinhard Meyer (-VC)",

In message <4C5BE642.4020706 at emk-elektronik.de> you wrote:
> Wolfgang Denk schrieb:
> > 	static unsigned char buffer[ENC_MAX_FRM_LEN] __attribute__ ((aligned(4)));
> Thanks, sometimes the very obvious is hidden behind a large wooden board :)
> 
> > Or, probably even better, use malloc() to allocate the buffer.
> For each received packet? Could do that, but its not worth it.

Not for each packet, only for the first one, of course, or when
initializing the driver.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Der Horizont vieler Menschen ist ein Kreis mit Radius Null --
und das nennen sie ihren Standpunkt.


More information about the U-Boot mailing list