From 76ccb25770671c336559dd46e184c7c6c2bfab07 Mon Sep 17 00:00:00 2001 From: Martin Husemann Date: Fri, 8 Jan 2010 16:40:30 +0000 Subject: [PATCH] Fix memory barrier in a debug function --- sys/dev/usb/ohci.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 7ec64d65c8c..bd3ad63f4ab 100644 --- a/sys/dev/usb/ohci.c +++ b/sys/dev/usb/ohci.c @@ -1,4 +1,4 @@ -/* $NetBSD: ohci.c,v 1.202 2009/11/12 08:54:00 uebayasi Exp $ */ +/* $NetBSD: ohci.c,v 1.203 2009/11/12 19:49:03 dyoung Exp $ */ /* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */ /* @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.202 2009/11/12 08:54:00 uebayasi Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.203 2009/11/12 19:49:03 dyoung Exp $"); #include #include @@ -1979,12 +1979,11 @@ ohci_dump_td(ohci_softc_t *sc, ohci_soft_td_t *std) { char sbuf[128]; + usb_syncmem(&std->dma, std->offs, sizeof(std->td), + BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD); snprintb(sbuf, sizeof(sbuf), "\20\23R\24OUT\25IN\31TOG1\32SETTOGGLE", (u_int32_t)O32TOH(std->td.td_flags)); - - usb_syncmem(&std->dma, std->offs, sizeof(std->td), - BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD); printf("TD(%p) at %08lx: %s delay=%d ec=%d cc=%d\ncbp=0x%08lx " "nexttd=0x%08lx be=0x%08lx\n", std, (u_long)std->physaddr, sbuf, -- 2.11.4.GIT