From 4af6e404e850d4ff2b2df2df358954108045ebd2 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Wed, 13 May 2009 10:17:21 +0200 Subject: [PATCH] ETRAX: Correct setting of ethernet station address. Signed-off-by: Edgar E. Iglesias --- hw/etraxfs_eth.c | 4 ++-- 1 file 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],