diff options
author | Warner Losh <imp@FreeBSD.org> | 2007-10-25 07:05:38 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2007-10-25 07:05:38 +0000 |
commit | 3e6468f751f803bc0d0ed28e2e6e6a0b67d82cba (patch) | |
tree | df70ba4ca5509dfd48713be29068b1c04141b11b | |
parent | cb3d8b2510957706abbe2e29ea83891cb30cfc1a (diff) |
Notes
-rw-r--r-- | sys/boot/arm/at91/libat91/emac_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/arm/at91/libat91/emac_init.c b/sys/boot/arm/at91/libat91/emac_init.c index 32f45639c595..30246226d617 100644 --- a/sys/boot/arm/at91/libat91/emac_init.c +++ b/sys/boot/arm/at91/libat91/emac_init.c @@ -79,8 +79,8 @@ EMAC_SetMACAddress(unsigned char mac[6]) pPMC->PMC_PCER = ((unsigned) 1 << AT91C_ID_EMAC); memcpy(localMACAddr, mac, 6); - localMAClow = (mac[2] << 24) | (mac[3] << 16) | (mac[4] << 8) | mac[5]; - localMAChigh = (mac[0] << 8) | mac[1]; + localMAClow = (mac[3] << 24) | (mac[2] << 16) | (mac[1] << 8) | mac[0]; + localMAChigh = (mac[5] << 8) | mac[4]; localMACSet = 1; AT91C_BASE_PMC->PMC_PCER = 1u << AT91C_ID_EMAC; |