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

Reinhard Meyer reinhard.meyer at emk-elektronik.de
Fri Aug 6 17:28:03 CEST 2010


Wolfgang Denk schrieb:
> 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.

Whats the benefit except for probably increased code size?

The only one I see is 1.5k more free RAM as long as the
driver is not initialized/used...

Best Regards
Reinhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reinhard_meyer.vcf
Type: text/x-vcard
Size: 370 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100806/543d71c4/attachment.vcf 


More information about the U-Boot mailing list