From: Robert Schwebel Date: Tue, 4 Feb 2003 16:33:32 +0100 Subject: [U-Boot-Users] 32 bit alignment In-Reply-To: References: <20030204135000.GJ25315@pengutronix.de> Message-ID: <20030204153332.GL25315@pengutronix.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Feb 04, 2003 at 03:18:41PM +0100, Marius Groeger wrote: > There are 2 ways to handle this: > > 1) Implement an alignment exception handler (have fun) > 2) Don't access unaligned data. Use byte accesses instead. The problem is that the whole network code in uboot depends on this; the IP packet is copied into some memory and a struct IP_t layed over it, pointing to the right address. Robert -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Braunschweiger Str. 79, 31134 Hildesheim, Germany Handelsregister: Amtsgericht Hildesheim, HRA 2686 Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4