[U-Boot-Users] 32 bit alignment

Wolfgang Denk wd at denx.de
Tue Feb 4 16:50:11 CET 2003


In message <20030204153332.GL25315 at 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.




More information about the U-Boot mailing list