From 2e2f3572e18b92a40e11b918e6dd4b2c4f6c8585 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 1 Nov 2006 04:34:24 +0000 Subject: fix the barriers in setlladdr. --- sys/dev/pci/if_vic.c | 6 +++--- 1 file 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 @@ -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 -- cgit v1.2.3