From: Olav Morken Date: Fri, 23 Jan 2009 11:56:26 +0000 (+0100) Subject: Fix IP alignment problem X-Git-Tag: v2009.03-rc1~139^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=af8626e0c08a780d9ded1d9c4883a89355f60e75;p=u-boot Fix IP alignment problem 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 Signed-off-by: Ben Warren --- diff --git a/net/net.c b/net/net.c index e6547f9edd..459baf4ea6 100644 --- a/net/net.c +++ b/net/net.c @@ -1684,7 +1684,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