From: Wolfgang Denk Date: Tue, 04 Feb 2003 16:50:11 +0100 Subject: [U-Boot-Users] 32 bit alignment In-Reply-To: Your message of "Tue, 04 Feb 2003 16:33:32 +0100." <20030204153332.GL25315@pengutronix.de> Message-ID: <20030204155016.CEC78C608E@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <20030204153332.GL25315@pengutronix.de> you wrote: > > > 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. Please point out a specific place in the code where (you think) this happens. We encountered the problem before on other ARM systems, and Robert Kaiser fixed most of these places. We found some more, but now the code is working fine on the ARM systems I have here. I guess you are using something that we did not test yet or not thoroughly enough. But I cannot accept your statement that "whole network code" breaks. It runs fine here ;-) Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de You can fool some of the people all of the time, and You can fool all of the people some of the time, but You can't fool mom.