summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorOlav Morken <olavmrk@gmail.com>2009-01-23 12:56:26 +0100
committerBen Warren <biggerbadderben@gmail.com>2009-01-28 23:59:28 -0800
commitaf8626e0c08a780d9ded1d9c4883a89355f60e75 (patch)
tree3e27cb55543d6f6e06106338db7063a67b3af4b8 /net
parent12a8b9db12f82a189ff143a58731007f5469da61 (diff)
downloadu-boot-imx-af8626e0c08a780d9ded1d9c4883a89355f60e75.zip
u-boot-imx-af8626e0c08a780d9ded1d9c4883a89355f60e75.tar.gz
u-boot-imx-af8626e0c08a780d9ded1d9c4883a89355f60e75.tar.bz2
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 <gunnar@rangoy.com> Signed-off-by: Paul Driveklepp <pauldriveklepp@gmail.com> Signed-off-by: Olav Morken <olavmrk@gmail.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/net.c b/net/net.c
index e6547f9..459baf4 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