Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Oct 2004 20:29:14 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 63384 for review
Message-ID:  <200410192029.i9JKTE86093204@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=63384

Change 63384 by jhb@jhb_tibook on 2004/10/19 20:29:11

	Use fences here as well.

Affected files ...

.. //depot/projects/smpng/sys/amd64/include/bus_amd64.h#4 edit

Differences ...

==== //depot/projects/smpng/sys/amd64/include/bus_amd64.h#4 (text+ko) ====

@@ -1215,9 +1215,9 @@
 {
 #ifdef	__GNUC__
 	if (flags & BUS_SPACE_BARRIER_READ)
-		__asm __volatile("lock; addl $0,0(%%rsp)" : : : "memory");
+		__asm __volatile("lfence" : : : "memory");
 	else
-		__asm __volatile("" : : : "memory");
+		__asm __volatile("sfence" : : : "memory");
 #endif
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410192029.i9JKTE86093204>