From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Tue, 27 Jan 2009 22:22:16 -0800 Subject: [U-Boot] [PATCH v2 1/9] Fix IP alignement problem In-Reply-To: <028f0528eb84570f84077f82e9e149576cc83b26.1232710611.git.gunnar@rangoy.com> References: <028f0528eb84570f84077f82e9e149576cc83b26.1232710611.git.gunnar@rangoy.com> Message-ID: <497FF998.2080509@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Gunnar Rangoy wrote: > From: Olav Morken > > This patch removes volatile from: > volatile IP_t *ip = (IP_t *)xip; > > Due to a bug, avr32-gcc will assume that ip is aligned on a word boundary when > using volatile, which causes an exception since xip isn't aligned on a word > boundary. > > Signed-off-by: Gunnar Rangoy > Signed-off-by: Paul Driveklepp > Signed-off-by: Olav Morken > --- > net/net.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/net/net.c b/net/net.c > index 313d5d8..405ca6e 100644 > --- a/net/net.c > +++ b/net/net.c > @@ -1685,7 +1685,7 @@ NetSetEther(volatile uchar * xet, uchar * addr, uint prot) > void > NetSetIP(volatile uchar * xip, IPaddr_t dest, int dport, int sport, int len) > { > - volatile IP_t *ip = (IP_t *)xip; > + IP_t *ip = (IP_t *)xip; > > /* > * If the data is an odd number of bytes, zero the > This seems reasonable. I'll try it out and will get back to you soon. regards, Ben