aboutsummaryrefslogtreecommitdiff
path: root/hw/etraxfs_eth.c
diff options
context:
space:
mode:
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-13 10:17:21 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2009-05-13 10:17:21 +0200
commit4af6e404e850d4ff2b2df2df358954108045ebd2 (patch)
tree966fb1a033c45308a1c03a2533cddcb8dda9486c /hw/etraxfs_eth.c
parentd3151521ab5da56bddfb1733baaf7ed4976e1c76 (diff)
ETRAX: Correct setting of ethernet station address.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/etraxfs_eth.c')
-rw-r--r--hw/etraxfs_eth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/etraxfs_eth.c b/hw/etraxfs_eth.c
index 15270f573d..bfc19262f5 100644
--- a/hw/etraxfs_eth.c
+++ b/hw/etraxfs_eth.c
@@ -401,8 +401,8 @@ static void eth_update_ma(struct fs_eth *eth, int ma)
eth->macaddr[ma][i++] = eth->regs[reg] >> 8;
eth->macaddr[ma][i++] = eth->regs[reg] >> 16;
eth->macaddr[ma][i++] = eth->regs[reg] >> 24;
- eth->macaddr[ma][i++] = eth->regs[reg + 4];
- eth->macaddr[ma][i++] = eth->regs[reg + 4] >> 8;
+ eth->macaddr[ma][i++] = eth->regs[reg + 1];
+ eth->macaddr[ma][i++] = eth->regs[reg + 1] >> 8;
D(printf("set mac%d=%x.%x.%x.%x.%x.%x\n", ma,
eth->macaddr[ma][0], eth->macaddr[ma][1],