[U-Boot-Users] 32 bit alignment

Wolfgang Denk wd at denx.de
Tue Feb 4 15:29:08 CET 2003


In message <20030204135000.GJ25315 at pengutronix.de> you wrote:
> 
> The DHCP payload starts at the marked address, which is not 32 bit
> aligned. Now I want to access the 32 bit value at the marked address and
> the following one by using a pointer (u32*)bp which points to the marked
> address. The result is that I get the value from the address _before_
> the marked address (which belongs to the same 32 bit aligned dword).
> This makes the whole network code break which assumes that it can lay
> arbitrary data structures over the piece of memory. 

Which exact piece of code (file name, source  line  number)  are  you
talking about?

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
Es sind überhaupt nur die Dummköpfe, die sich den Befehlen der  Mäch-
tigen  widersetzen.  Um  sie  zu ruinieren ist es genug, ihre Befehle
treu zu erfüllen.                  - Peter Hacks: "Die schöne Helena"




More information about the U-Boot mailing list