summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-11-01 04:34:24 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-11-01 04:34:24 +0000
commit2e2f3572e18b92a40e11b918e6dd4b2c4f6c8585 (patch)
tree721a81efd70d28a4a815a682d131ee0004fe076f
parentfa058e3d54b14dc9fe89dcce35cb12ee9af8e748 (diff)
fix the barriers in setlladdr.
-rw-r--r--sys/dev/pci/if_vic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_vic.c b/sys/dev/pci/if_vic.c
index 5e7149cb8d6..459ecffafcd 100644
--- a/sys/dev/pci/if_vic.c
+++ b/sys/dev/pci/if_vic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vic.c,v 1.11 2006/10/31 07:01:08 dlg Exp $ */
+/* $OpenBSD: if_vic.c,v 1.12 2006/11/01 04:34:23 dlg Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
@@ -692,10 +692,10 @@ vic_getlladdr(struct vic_softc *sc)
void
vic_setlladdr(struct vic_softc *sc)
{
- bus_space_barrier(sc->sc_iot, sc->sc_ioh, VIC_LLADDR, ETHER_ADDR_LEN,
- BUS_SPACE_BARRIER_READ);
bus_space_write_region_1(sc->sc_iot, sc->sc_ioh, VIC_LLADDR,
sc->sc_lladdr, ETHER_ADDR_LEN);
+ bus_space_barrier(sc->sc_iot, sc->sc_ioh, VIC_LLADDR, ETHER_ADDR_LEN,
+ BUS_SPACE_BARRIER_WRITE);
}
int