summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-07-06 19:21:07 +0000
committerwpaul <wpaul@FreeBSD.org>2000-07-06 19:21:07 +0000
commit2a3a1379634e66af05a2e4f94e5ed4b50058c920 (patch)
treec824df5f7d977936c69abdb1ce6ad94c27a3314e /sys/pci
parent9934efd0dd01234ea9ed875e69684c0d76a063af (diff)
downloadFreeBSD-src-2a3a1379634e66af05a2e4f94e5ed4b50058c920.zip
FreeBSD-src-2a3a1379634e66af05a2e4f94e5ed4b50058c920.tar.gz
Fix a minor bug in the MAC address unscrambling code.
(Some shift rights should have been shift lefts.)
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_sis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index 8410a7f..d69679d 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -774,11 +774,11 @@ static int sis_attach(dev)
/* Shift everything over one bit. */
tmp[3] = tmp[3] >> 1;
- tmp[3] |= tmp[2] >> 15;
+ tmp[3] |= tmp[2] << 15;
tmp[2] = tmp[2] >> 1;
- tmp[2] |= tmp[1] >> 15;
+ tmp[2] |= tmp[1] << 15;
tmp[1] = tmp[1] >> 1;
- tmp[1] |= tmp[0] >> 15;
+ tmp[1] |= tmp[0] << 15;
/* Now reverse all the bits. */
tmp[3] = sis_reverse(tmp[3]);
OpenPOWER on IntegriCloud