From: Reinhard Meyer Date: Fri, 06 Aug 2010 17:28:03 +0200 Subject: [U-Boot] Warning NetReceive(): Make sure packet buffers start on an even address In-Reply-To: <20100806144841.8A4391524E4@gemini.denx.de> References: <4C5BE2CF.2020306@emk-elektronik.de> <20100806103134.2048B1524E4@gemini.denx.de> <4C5BE642.4020706@emk-elektronik.de> <20100806144841.8A4391524E4@gemini.denx.de> Message-ID: <4C5C2A03.3070005@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk schrieb: > Dear "Reinhard Meyer (-VC)", > > In message <4C5BE642.4020706@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