From: Wolfgang Denk Date: Tue, 04 Feb 2003 15:29:08 +0100 Subject: [U-Boot-Users] 32 bit alignment In-Reply-To: Your message of "Tue, 04 Feb 2003 14:50:00 +0100." <20030204135000.GJ25315@pengutronix.de> Message-ID: <20030204142913.9FDAEC608E@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 <20030204135000.GJ25315@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"